Skip to content

Commit

Permalink
Merge pull request #7 from Cambio-Project/add_production_server
Browse files Browse the repository at this point in the history
added WSGI production server when running via docker
  • Loading branch information
julianbrott authored Mar 18, 2024
2 parents 705994b + d125d75 commit a2a5ba2
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 a2a5ba2

Please sign in to comment.