Skip to content

Commit

Permalink
chore: add port env on deckerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hvini committed Dec 15, 2023
1 parent 84cbe8a commit c849451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM python:3.11-slim

ENV PYTHONUNBUFFERED True

ENV APP_HOME /app
ENV PORT 5000

WORKDIR $APP_HOME
COPY . ./

Expand Down
2 changes: 1 addition & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@

if __name__ == "__main__":
# app.run(debug=os.environ['FLASK_ENV'])
app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 8080)))
app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 5000)))

0 comments on commit c849451

Please sign in to comment.