Update Dockerfile
Browse files- Dockerfile +19 -99
Dockerfile
CHANGED
@@ -9,112 +9,32 @@ ENV PYTHONUNBUFFERED 1
|
|
9 |
RUN mkdir -p /home/app/staticfiles/app/uploaded_videos/
|
10 |
WORKDIR /app
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Install Rust and Cargo
|
13 |
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
14 |
ENV PATH="/root/.cargo/bin:$PATH"
|
15 |
|
16 |
-
# Install dependencies
|
17 |
RUN pip install --upgrade pip
|
18 |
-
RUN pip install cmake
|
19 |
RUN pip install opencv-python==4.2.0.32
|
20 |
RUN pip install protobuf
|
21 |
-
|
22 |
-
|
23 |
-
RUN pip install
|
24 |
-
|
25 |
-
|
26 |
-
RUN pip install base58
|
27 |
-
RUN pip install bleach
|
28 |
-
RUN pip install blinker
|
29 |
-
RUN pip install cachetools
|
30 |
-
RUN pip install certifi
|
31 |
-
RUN pip install chardet
|
32 |
-
RUN pip install click
|
33 |
-
RUN pip install colorama
|
34 |
-
RUN pip install cycler
|
35 |
-
RUN pip install decorator
|
36 |
-
RUN pip install defusedxml
|
37 |
-
RUN pip install Django
|
38 |
-
RUN pip install dlib
|
39 |
-
RUN pip install docutils
|
40 |
-
RUN pip install entrypoints
|
41 |
-
RUN pip install enum-compat
|
42 |
-
RUN pip install face-recognition
|
43 |
-
RUN pip install face-recognition-models
|
44 |
-
RUN pip install future
|
45 |
-
RUN pip install google
|
46 |
-
RUN pip install google-api-core
|
47 |
-
RUN pip install google-api-python-client
|
48 |
-
RUN pip install google-auth
|
49 |
-
RUN pip install google-auth-httplib2
|
50 |
-
RUN pip install googleapis-common-protos
|
51 |
-
RUN pip install httplib2
|
52 |
-
RUN pip install idna
|
53 |
-
RUN pip install ipykernel
|
54 |
-
RUN pip install ipython
|
55 |
-
RUN pip install ipython-genutils
|
56 |
-
RUN pip install ipywidgets
|
57 |
-
RUN pip install jedi
|
58 |
-
RUN pip install Jinja2
|
59 |
-
RUN pip install jmespath
|
60 |
-
RUN pip install json5
|
61 |
-
RUN pip install jsonschema
|
62 |
-
RUN pip install jupyter-client
|
63 |
-
RUN pip install jupyter-core
|
64 |
-
RUN pip install jupyterlab
|
65 |
-
RUN pip install jupyterlab-server
|
66 |
-
RUN pip install kiwisolver
|
67 |
-
RUN pip install MarkupSafe
|
68 |
-
RUN pip install matplotlib
|
69 |
-
RUN pip install mistune
|
70 |
-
RUN pip install nbconvert
|
71 |
-
RUN pip install nbformat
|
72 |
-
RUN pip install notebook
|
73 |
-
RUN pip install numpy
|
74 |
-
RUN pip install packaging
|
75 |
-
RUN pip install pandas
|
76 |
-
RUN pip install pandocfilters
|
77 |
-
RUN pip install parso
|
78 |
-
RUN pip install pathtools
|
79 |
-
RUN pip install pickleshare
|
80 |
-
RUN pip install Pillow
|
81 |
-
RUN pip install prometheus-client
|
82 |
-
RUN pip install prompt-toolkit
|
83 |
-
RUN pip install pyasn1
|
84 |
-
RUN pip install pyasn1-modules
|
85 |
-
RUN pip install pycodestyle
|
86 |
-
RUN pip install pydeck
|
87 |
-
RUN pip install Pygments
|
88 |
-
RUN pip install pyparsing
|
89 |
-
RUN pip install pyrsistent
|
90 |
-
RUN pip install python-dateutil
|
91 |
-
RUN pip install pytz
|
92 |
-
RUN pip install pywinpty
|
93 |
-
RUN pip install PyYAML
|
94 |
-
RUN pip install pyzmq
|
95 |
-
RUN pip install requests
|
96 |
-
RUN pip install rsa
|
97 |
-
RUN pip install s3transfer
|
98 |
-
RUN pip install Send2Trash
|
99 |
-
RUN pip install six
|
100 |
-
RUN pip install soupsieve
|
101 |
-
RUN pip install sqlparse
|
102 |
-
RUN pip install terminado
|
103 |
-
RUN pip install testpath
|
104 |
-
RUN pip install toml
|
105 |
-
RUN pip install toolz
|
106 |
-
RUN pip install torch
|
107 |
-
RUN pip install torchvision
|
108 |
-
RUN pip install tornado
|
109 |
-
RUN pip install traitlets
|
110 |
-
RUN pip install tzlocal
|
111 |
-
RUN pip install uritemplate
|
112 |
-
RUN pip install urllib3
|
113 |
-
RUN pip install validators
|
114 |
-
RUN pip install watchdog
|
115 |
-
RUN pip install wcwidth
|
116 |
-
RUN pip install webencodings
|
117 |
-
RUN pip install widgetsnbextension
|
118 |
|
119 |
# Copy application files
|
120 |
COPY . /app
|
|
|
9 |
RUN mkdir -p /home/app/staticfiles/app/uploaded_videos/
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
# Install system dependencies for dlib
|
13 |
+
RUN apt-get update && apt-get install -y \
|
14 |
+
build-essential \
|
15 |
+
cmake \
|
16 |
+
g++ \
|
17 |
+
wget \
|
18 |
+
unzip \
|
19 |
+
libopenblas-dev \
|
20 |
+
liblapack-dev \
|
21 |
+
libx11-dev && \
|
22 |
+
apt-get clean
|
23 |
+
|
24 |
# Install Rust and Cargo
|
25 |
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
26 |
ENV PATH="/root/.cargo/bin:$PATH"
|
27 |
|
28 |
+
# Install Python dependencies
|
29 |
RUN pip install --upgrade pip
|
|
|
30 |
RUN pip install opencv-python==4.2.0.32
|
31 |
RUN pip install protobuf
|
32 |
+
|
33 |
+
# Install dlib from a precompiled wheel if available
|
34 |
+
RUN pip install dlib==19.24.6 --no-cache-dir --find-links https://dlib.net/files/
|
35 |
+
|
36 |
+
# Install remaining Python packages
|
37 |
+
RUN pip install altair asgiref astor attrs backcall base58 bleach blinker cachetools certifi chardet click colorama cycler decorator defusedxml Django docutils entrypoints enum-compat face-recognition face-recognition-models future google google-api-core google-api-python-client google-auth google-auth-httplib2 googleapis-common-protos httplib2 idna ipykernel ipython ipython-genutils ipywidgets jedi Jinja2 jmespath json5 jsonschema jupyter-client jupyter-core jupyterlab jupyterlab-server kiwisolver MarkupSafe matplotlib mistune nbconvert nbformat notebook numpy packaging pandas pandocfilters parso pathtools pickleshare Pillow prometheus-client prompt-toolkit pyasn1 pyasn1-modules pycodestyle pydeck Pygments pyparsing pyrsistent python-dateutil pytz pywinpty PyYAML pyzmq requests rsa s3transfer Send2Trash six soupsieve sqlparse terminado testpath toml toolz torch torchvision tornado traitlets tzlocal uritemplate urllib3 validators watchdog wcwidth webencodings widgetsnbextension
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
# Copy application files
|
40 |
COPY . /app
|