Skip to content

Commit

Permalink
update dockerfile for generic nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tobru committed Jun 1, 2024
1 parent c4bb4ce commit 72a579c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.contactform
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ RUN apt-get update && \

ENV VIRTUAL_ENV=/app/.venv \
PATH="/app/.venv/bin:$PATH" \
PYTHONPATH="/contactform" \
PYTHONPATH="/conferenceli" \
GUNICORN_CMD_ARGS="--workers=1 --bind=unix:/app/gunicorn.sock --access-logfile=-"

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

COPY contactform ./contactform
COPY contactform ./conferenceli
COPY nginx.conf /etc/nginx/nginx.conf

EXPOSE 8080

CMD ["sh", "-c", "nginx && gunicorn contactform.app:app"]
CMD ["sh", "-c", "nginx && gunicorn conferenceli.app:app"]

0 comments on commit 72a579c

Please sign in to comment.