WebashalarForML commited on
Commit
10b56d7
·
verified ·
1 Parent(s): c1723fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
 
4
  # Set environment variables for Python
5
  ENV PYTHONDONTWRITEBYTECODE 1
@@ -72,4 +72,4 @@ ENV FLASK_ENV=production
72
 
73
  # Command to run the Flask app using Gunicorn with 1 worker
74
  #CMD ["gunicorn", "--workers=1", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
75
- CMD ["gunicorn", "--workers=5", "--threads=2", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
 
1
  # Use an official Python runtime as a parent image
2
+ FROM python:3.11-slim
3
 
4
  # Set environment variables for Python
5
  ENV PYTHONDONTWRITEBYTECODE 1
 
72
 
73
  # Command to run the Flask app using Gunicorn with 1 worker
74
  #CMD ["gunicorn", "--workers=1", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]
75
+ CMD ["gunicorn", "--workers=3", "--threads=2", "--bind=0.0.0.0:7860", "--timeout=120", "app:app"]