Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
FROM python:3.
|
2 |
WORKDIR /webapp
|
3 |
COPY . .
|
4 |
RUN pip install --no-cache-dir -r requirements.txt
|
5 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "--workers=
|
6 |
EXPOSE 7860
|
|
|
1 |
+
FROM python:3.11-slim
|
2 |
WORKDIR /webapp
|
3 |
COPY . .
|
4 |
RUN pip install --no-cache-dir -r requirements.txt
|
5 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "--workers=1", "--threads=1", "--worker-connections=1000", "app:app"]
|
6 |
EXPOSE 7860
|