Skip to content

Commit

Permalink
Merge pull request #17 from ComputerScienceHouse/gunicorn
Browse files Browse the repository at this point in the history
Add Gunicorn as Entrypoint
  • Loading branch information
jabbate19 authored Jan 31, 2024
2 parents c4a6b42 + 6a2753c commit 51fd302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ COPY ./.git /app/

RUN python -m flask db upgrade; exit 0

CMD [ "python", "-m" , "flask", "run", "--host=0.0.0.0", "-p", "8080"]
CMD [ "gunicorn", "deadass:app", "--bind=0.0.0.0:8080"]

2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Flask-SQLAlchemy==3.0.2
Flask-WTF==1.0.1
future==0.18.2
greenlet==1.1.3.post0
gunicorn==21.2.0
idna==3.4
importlib-metadata==5.0.0
importlib-resources==5.10.0
Expand All @@ -23,6 +24,7 @@ Jinja2==3.1.2
Mako==1.2.3
MarkupSafe==2.1.1
oic==1.4.0
packaging==23.2
psycopg2==2.9.4
pycparser==2.21
pycryptodomex==3.15.0
Expand Down

0 comments on commit 51fd302

Please sign in to comment.