navpan2 commited on
Commit
fe7913a
·
verified ·
1 Parent(s): fcb63c4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +103 -5
Dockerfile CHANGED
@@ -1,6 +1,7 @@
1
- # Pull python 3.6.8 docker image
2
  FROM python:3.7
3
 
 
4
  ENV PYTHONDONTWRITEBYTECODE 1
5
  ENV PYTHONUNBUFFERED 1
6
 
@@ -12,12 +13,108 @@ WORKDIR /app
12
  RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
13
  ENV PATH="/root/.cargo/bin:$PATH"
14
 
15
- # Copy requirements and install dependencies
16
- COPY ./requirements.txt /app/requirements.txt
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 -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  # Copy application files
23
  COPY . /app
@@ -27,5 +124,6 @@ RUN pip install gunicorn
27
  # Create uploaded videos directory
28
  RUN mkdir -p /app/uploaded_videos /app/uploaded_videos/
29
 
 
30
  VOLUME /app/run/
31
  ENTRYPOINT ["/app/bin/gunicorn_start.sh"]
 
1
+ # Pull python 3.7 docker image
2
  FROM python:3.7
3
 
4
+ # Set environment variables
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
  ENV PYTHONUNBUFFERED 1
7
 
 
13
  RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
14
  ENV PATH="/root/.cargo/bin:$PATH"
15
 
16
+ # Install dependencies one at a time
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
+ RUN pip install altair
22
+ RUN pip install asgiref
23
+ RUN pip install astor
24
+ RUN pip install attrs
25
+ RUN pip install backcall
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
 
124
  # Create uploaded videos directory
125
  RUN mkdir -p /app/uploaded_videos /app/uploaded_videos/
126
 
127
+ # Expose volume and set entry point
128
  VOLUME /app/run/
129
  ENTRYPOINT ["/app/bin/gunicorn_start.sh"]