prabinpanta0 commited on
Commit
1fe0860
1 Parent(s): a14d8bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -21,8 +21,8 @@ RUN pip install --no-cache-dir -r requirements.txt
21
  # Copy the application code
22
  COPY . /app/
23
 
24
- # Expose port 5000 for Flask
25
- EXPOSE 5000
26
 
27
- # Command to run the application
28
- CMD ["python", "app.py"]
 
21
  # Copy the application code
22
  COPY . /app/
23
 
24
+ # Expose port 7860 for the app (standard port for Hugging Face Spaces)
25
+ EXPOSE 7860
26
 
27
+ # Command to run the application with Gunicorn
28
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]