Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
|
| 2 |
FROM python:3.10-slim
|
| 3 |
-
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
COPY requirements.txt .
|
|
@@ -9,7 +8,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 9 |
COPY app.py best_model_random_forest.joblib ./
|
| 10 |
|
| 11 |
ENV MODEL_PATH=best_model_random_forest.joblib
|
| 12 |
-
|
| 13 |
EXPOSE 5000
|
| 14 |
|
| 15 |
-
CMD ["gunicorn", "--
|
|
|
|
|
|
| 1 |
|
| 2 |
FROM python:3.10-slim
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
|
|
|
| 8 |
COPY app.py best_model_random_forest.joblib ./
|
| 9 |
|
| 10 |
ENV MODEL_PATH=best_model_random_forest.joblib
|
|
|
|
| 11 |
EXPOSE 5000
|
| 12 |
|
| 13 |
+
CMD ["gunicorn", "--workers", "2", "--threads", "2", "--timeout", "120",
|
| 14 |
+
"--bind", "0.0.0.0:5000", "app:app"]
|