Skip to content

Commit

Permalink
added WSGI production server when running via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
a-baur committed Mar 18, 2024
1 parent 705994b commit d125d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ ENV FLASK_APP=main.py

EXPOSE 5000

CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0"]
CMD ["python3", "-m", "gunicorn", "main:app", "--bind=0.0.0.0:5000", "--workers=4"]
1 change: 1 addition & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dateparser==1.1.1
Flask==2.0.3
Flask-BasicAuth==0.2.0
Flask-Cors==3.0.10
gunicorn==21.2.0
influxdb==5.3.1
Jinja2==3.0.3
jsonschema==3.2.0
Expand Down

0 comments on commit d125d75

Please sign in to comment.