Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -11
Dockerfile
CHANGED
|
@@ -1,19 +1,12 @@
|
|
| 1 |
-
# Use a slim Python image as a base
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
-
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Copy the requirements file and install dependencies
|
| 8 |
COPY requirements.txt .
|
| 9 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
COPY extraalearn_best_model.joblib .
|
| 14 |
|
| 15 |
-
|
| 16 |
-
EXPOSE 5000
|
| 17 |
|
| 18 |
-
|
| 19 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY requirements.txt .
|
|
|
|
| 6 |
|
| 7 |
+
RUN pip install --upgrade pip setuptools wheel
|
| 8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 9 |
|
| 10 |
+
COPY . .
|
|
|
|
| 11 |
|
| 12 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
|
|
|