comet/Dockerfile

9 lines
293 B
Text
Raw Permalink Normal View History

2018-12-13 17:48:16 +00:00
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /django
2018-12-14 19:40:29 +00:00
ADD ./comet /django/
2018-12-14 21:06:34 +00:00
ADD ./requirements.txt /django/requirements.txt
2018-12-13 17:48:16 +00:00
WORKDIR /django
RUN pip install -r requirements.txt
CMD sleep 5; python manage.py migrate; python manage.py collectstatic --noinput; gunicorn comet.wsgi -b 0.0.0.0:8000