Skip to content

Commit

Permalink
Update Dockerfile to fix ENV usage warning
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Sep 18, 2024
1 parent 42613b9 commit 4dbe60e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# FLASK_CONFIG=production # enable for production
# DATABASE_URL=sqlite:////home/greybook/database/data.db
# MAIL_SERVER=smtp.example.com
# MAIL_USERNAME=example
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ COPY app.py docker-entrypoint.sh ./
RUN chown -R greybook:greybook .
USER greybook

ENV FLASK_APP app.py
ENV FLASK_CONFIG production
ENV GREYBOOK_LOGGING_PATH stream
ENV FLASK_APP=app.py
ENV FLASK_CONFIG=production
ENV GREYBOOK_LOGGING_PATH=stream

EXPOSE 5000
ENTRYPOINT ["./docker-entrypoint.sh"]
6 changes: 3 additions & 3 deletions Dockerfile.multi-stage
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ COPY app.py .
RUN chown -R greybook:greybook .
USER greybook

ENV FLASK_APP app
ENV FLASK_CONFIG production
ENV GREYBOOK_LOGGING_PATH stream
ENV FLASK_APP=app.py
ENV FLASK_CONFIG=production
ENV GREYBOOK_LOGGING_PATH=stream

EXPOSE 5000
ENTRYPOINT ["./docker-entrypoint.sh"]

0 comments on commit 4dbe60e

Please sign in to comment.