Use Docker, upgrade deps
This commit is contained in:
parent
16f8eb0470
commit
90f2fe1ced
18 changed files with 231 additions and 79 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal 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", "-"]
|
Loading…
Add table
Add a link
Reference in a new issue