Spaces:
Sleeping
Sleeping
Fix Dockerfile to use gunicorn with Flask app
Browse files- 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 ["
|
|
|
|
| 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"]
|