Use Docker, upgrade deps

This commit is contained in:
Jonathan Cremin 2018-08-07 16:55:22 +01:00
parent 16f8eb0470
commit 90f2fe1ced
18 changed files with 231 additions and 79 deletions

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM python:3.7.0-alpine3.8
WORKDIR /app
EXPOSE 8000
ENV DEBUG false
ENV SECRET_KEY unsafe
RUN pip install pipenv && \
apk add postgresql-dev gcc python3-dev musl-dev
ADD Pipfile* ./
RUN pipenv install
ADD . .
RUN pipenv run ./manage.py collectstatic --noinput
CMD ["pipenv", "run", "gunicorn", "-b", "0.0.0.0:8000", "app.wsgi", "--log-file", "-"]