Dockerfile 419 B

12345678910111213141516171819202122
  1. FROM python:3.6
  2. LABEL maintainer="hello@wagtail.io"
  3. ENV PYTHONUNBUFFERED 1
  4. ENV DJANGO_ENV dev
  5. COPY ./requirements.txt /code/requirements.txt
  6. RUN pip install -r /code/requirements.txt
  7. RUN pip install gunicorn
  8. COPY . /code/
  9. WORKDIR /code/
  10. RUN python manage.py migrate
  11. RUN useradd wagtail
  12. RUN chown -R wagtail /code
  13. USER wagtail
  14. EXPOSE 8000
  15. CMD exec gunicorn website.wsgi:application --bind 0.0.0.0:8000 --workers 3