shayan5422 commited on
Commit
48fb8cb
·
verified ·
1 Parent(s): 66fca56

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:$PORT", "--workers", "1", "--timeout", "120"]
 
 
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