usmanyousaf commited on
Commit
a825611
·
verified ·
1 Parent(s): ee09b50

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -15,5 +15,7 @@ RUN apt-get update && apt-get install -y \
15
  # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Run the application
19
- CMD ["python", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
15
  # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ EXPOSE 7860
19
+
20
+ # Use gunicorn to run the app
21
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]