-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
88 lines (77 loc) · 1.81 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM nvcr.io/nvidia/cuda:12.1.0-cudnn8-runtime-ubuntu22.04 AS base
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive\
SHELL=/bin/bash\
PYTHONPATH=/app\
PATH="/root/.local/bin:$PATH"\
LC_ALL=C.UTF-8\
LANG=C.UTF-8\
VIRTUAL_ENV=/app/venv
ENV PYTHONPATH="/app"
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
# Python and build essentials
python3-dev \
python3-venv \
python3-setuptools \
python3-wheel \
python3-distutils \
python3-doc \
python3-tk \
python3-pip \
build-essential \
gcc \
g++ \
git \
wget \
curl \
software-properties-common \
# Scientific Computing Libraries
libblas-dev \
liblapack-dev \
libopenblas-dev \
# Image Processing
libopencv-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libwebp-dev \
libgif-dev \
libsm6 \
libxext6 \
libxrender-dev \
# Audio and Video Processing
ffmpeg \
libsndfile1 \
libsndfile1-dev \
libopus-dev \
libx264-dev \
libmp3lame-dev \
libvorbis-dev \
# Data Processing and Storage
libxml2-dev \
libxslt1-dev \
libsqlite3-dev \
# Document Processing
tesseract-ocr \
# System Libraries
libssl-dev \
libffi-dev \
liblzma-dev \
libcairo2-dev \
libgl1 \
libgl1-mesa-glx && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN pip3 install --upgrade pip
COPY requirements.txt /app/
RUN ln -s /usr/bin/python3 /usr/bin/python
# Create and activate virtual environment
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN --mount=type=cache,target=/root/.cache pip install -r requirements.txt
RUN pip install ipython
COPY src /app
COPY scripts /app/scripts