Update Dockerfile
Browse files- Dockerfile +21 -21
Dockerfile
CHANGED
|
@@ -1,22 +1,22 @@
|
|
| 1 |
-
#pull the nvidia cuda GPU docker image
|
| 2 |
-
FROM nvidia/cuda
|
| 3 |
-
|
| 4 |
-
#pull python 3.6.8 docker image
|
| 5 |
-
FROM python:3.6.8
|
| 6 |
-
ENV PYTHONDONTWRITEBYTECODE 1
|
| 7 |
-
ENV PYTHONUNBUFFERED 1
|
| 8 |
-
#create a directory to serve static files
|
| 9 |
-
RUN mkdir -p /home/app/staticfiles/app/uploaded_videos/
|
| 10 |
-
WORKDIR /app
|
| 11 |
-
COPY ./requirements.txt /app/requirements.txt
|
| 12 |
-
RUN python -m pip install --upgrade pip
|
| 13 |
-
RUN pip install cmake
|
| 14 |
-
RUN pip install opencv-python==4.2.0.32
|
| 15 |
-
RUN pip install -r requirements.txt
|
| 16 |
-
COPY . /app
|
| 17 |
-
RUN python manage.py collectstatic --noinput
|
| 18 |
-
RUN pip install gunicorn
|
| 19 |
-
RUN mkdir -p /app/uploaded_videos /app/uploaded_videos/
|
| 20 |
-
|
| 21 |
-
VOLUME /app/run/
|
| 22 |
ENTRYPOINT ["/app/bin/gunicorn_start.sh"]
|
|
|
|
| 1 |
+
#pull the nvidia cuda GPU docker image
|
| 2 |
+
# FROM nvidia/cuda
|
| 3 |
+
|
| 4 |
+
#pull python 3.6.8 docker image
|
| 5 |
+
FROM python:3.6.8
|
| 6 |
+
ENV PYTHONDONTWRITEBYTECODE 1
|
| 7 |
+
ENV PYTHONUNBUFFERED 1
|
| 8 |
+
#create a directory to serve static files
|
| 9 |
+
RUN mkdir -p /home/app/staticfiles/app/uploaded_videos/
|
| 10 |
+
WORKDIR /app
|
| 11 |
+
COPY ./requirements.txt /app/requirements.txt
|
| 12 |
+
RUN python -m pip install --upgrade pip
|
| 13 |
+
RUN pip install cmake
|
| 14 |
+
RUN pip install opencv-python==4.2.0.32
|
| 15 |
+
RUN pip install -r requirements.txt
|
| 16 |
+
COPY . /app
|
| 17 |
+
RUN python manage.py collectstatic --noinput
|
| 18 |
+
RUN pip install gunicorn
|
| 19 |
+
RUN mkdir -p /app/uploaded_videos /app/uploaded_videos/
|
| 20 |
+
|
| 21 |
+
VOLUME /app/run/
|
| 22 |
ENTRYPOINT ["/app/bin/gunicorn_start.sh"]
|