Shabi23 commited on
Commit
b106a00
·
verified ·
1 Parent(s): 42761c3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -16,7 +16,8 @@ RUN pip install --no-cache-dir -r Requirements.txt
16
  # Set the environment variable for Hugging Face cache location
17
  ENV HF_HOME=/app/.cache
18
 
19
- # Remove the EXPOSE port and Gunicorn part
 
20
 
21
- # Run the Flask app directly
22
- CMD ["python", "app.py"]
 
16
  # Set the environment variable for Hugging Face cache location
17
  ENV HF_HOME=/app/.cache
18
 
19
+ # Define environment variable for Flask app port (optional but not needed in HF Spaces)
20
+ ENV PORT=7680
21
 
22
+ # Run the application using Gunicorn
23
+ ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:7680", "application:application"]