Skip to content

Commit b93b1e1

Browse files
authored
Update Dockerfile
1 parent cd102fd commit b93b1e1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
FROM python:3.7 as silverback-stage-1
2-
1+
FROM python:3.6
2+
33
ENV PYTHONUNBUFFERED 1
4-
ARG VERSION=master
4+
55
RUN mkdir /app
6+
67
COPY . /app
8+
79
WORKDIR /app
10+
811
RUN pip install -r requirements.txt
9-
RUN echo "yes" | python manage.py collectstatic
1012

13+
RUN python manage.py collectstatic --noinput
14+
15+
RUN rm -rf ./assets
1116

12-
FROM silverback-stage-1 as silverback-stage-2
13-
WORKDIR /app
1417
EXPOSE 8000
18+
1519
CMD ["gunicorn" , "-b", "0.0.0.0:8000", "app.wsgi"]

0 commit comments

Comments
 (0)