Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -29,4 +29,5 @@ EXPOSE 8080
|
|
29 |
|
30 |
# Define the command to run the application using Gunicorn
|
31 |
# Gunicorn will listen on the port specified by the $PORT environment variable provided by Hugging Face Spaces.
|
32 |
-
|
|
|
|
29 |
|
30 |
# Define the command to run the application using Gunicorn
|
31 |
# Gunicorn will listen on the port specified by the $PORT environment variable provided by Hugging Face Spaces.
|
32 |
+
# Use shell form for CMD to allow $PORT substitution
|
33 |
+
CMD gunicorn app:app --bind 0.0.0.0:$PORT --workers 1 --timeout 120
|