#2: use gunicorn with nginx as reverse proxy
This commit is contained in:
parent
754363a92e
commit
3c1fec3f63
5 changed files with 32 additions and 10 deletions
|
|
@ -1,6 +1,5 @@
|
|||
FROM alpine:3.7
|
||||
|
||||
EXPOSE 8042
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apk add --no-cache \
|
||||
|
|
@ -19,9 +18,7 @@ RUN apk add --virtual build-deps gcc python3-dev musl-dev && \
|
|||
|
||||
COPY . .
|
||||
|
||||
# TODO #1: build a real production setup with gunicorn, nginx for static files etc.
|
||||
#CMD ["gunicorn", "pluralityspace.wsgi:application", \
|
||||
# "--bind", "0.0.0.0:8042"]
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["python3", "./manage.py"]
|
||||
CMD ["runserver", "0.0.0.0:8042"]
|
||||
CMD ["gunicorn", "pluralityspace.wsgi:application", \
|
||||
"--bind", "0.0.0.0:8000"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue