Samarth Naik commited on
Commit
ed5ce44
·
1 Parent(s): 946c35d

Simplify: use plain Python instead of Gunicorn

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -6
  2. requirements.txt +1 -2
Dockerfile CHANGED
@@ -2,15 +2,11 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install uv
6
- RUN pip install uv
7
-
8
  COPY requirements.txt .
9
- RUN uv pip install -r requirements.txt --system
10
 
11
  COPY . .
12
 
13
  EXPOSE 5000
14
 
15
- # Use gunicorn for production - 4 workers for better concurrency
16
- CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "300", "--access-logfile", "-", "--error-logfile", "-", "app:app"]
 
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  COPY requirements.txt .
6
+ RUN pip install -r requirements.txt
7
 
8
  COPY . .
9
 
10
  EXPOSE 5000
11
 
12
+ CMD ["python", "app.py"]
 
requirements.txt CHANGED
@@ -1,3 +1,2 @@
1
  flask
2
- flask-cors
3
- gunicorn
 
1
  flask
2
+ flask-cors