Skip to content

Commit

Permalink
add gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Aug 2, 2024
1 parent f18389c commit 2e423e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ COPY app.py app.py
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN pip3 install -U flask-cors
CMD ["flask", "run"]
CMD ["gunicorn", "-b", ":5000", "app:app"]
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ minio
boto3
flask-cors
mysql-connector-python
requests
requests
gunicorn

0 comments on commit 2e423e5

Please sign in to comment.