frimponge commited on
Commit
5755a92
·
verified ·
1 Parent(s): 2fb2367

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # Dockerfile
2
 
3
  # Base Python Image
4
- FROM python:3.10-slim
5
 
6
  # Set environment variables
7
  ENV PYTHONDONTWRITEBYTECODE 1
@@ -35,4 +35,4 @@ RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt; fi
35
  EXPOSE 7860
36
 
37
  # Run FastAPI with Uvicorn
38
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # Dockerfile
2
 
3
  # Base Python Image
4
+ FROM python:3.12
5
 
6
  # Set environment variables
7
  ENV PYTHONDONTWRITEBYTECODE 1
 
35
  EXPOSE 7860
36
 
37
  # Run FastAPI with Uvicorn
38
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]