Spaces:
Sleeping
Sleeping
Update DockerFile
Browse files- DockerFile +3 -2
DockerFile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
@@ -7,4 +7,5 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 7 |
|
| 8 |
COPY app.py .
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 7 |
|
| 8 |
COPY app.py .
|
| 9 |
|
| 10 |
+
# Gunicorn ile çalıştır
|
| 11 |
+
CMD ["gunicorn", "app:app", "--workers", "2", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860"]
|