Dyno1307 commited on
Commit
bd75eed
·
1 Parent(s): ed1abdf

Fix Dockerfile to use gunicorn with Flask app

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -16,6 +16,6 @@ COPY ./src /code/src
16
  # Create a writable directory for caching/temp files if needed
17
  RUN mkdir -p /code/temp && chmod 777 /code/temp
18
 
19
- # Set the command to run the application
20
  # Note: HF Spaces expects the app to run on port 7860
21
- CMD ["uvicorn", "src.api.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
16
  # Create a writable directory for caching/temp files if needed
17
  RUN mkdir -p /code/temp && chmod 777 /code/temp
18
 
19
+ # Set the command to run the Flask application
20
  # Note: HF Spaces expects the app to run on port 7860
21
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "src.app:app"]