Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -15
Dockerfile
CHANGED
|
@@ -1,15 +1,6 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
# Copy the requirements file first to install tools
|
| 8 |
-
COPY requirements.txt .
|
| 9 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
-
|
| 11 |
-
# Copy all your code files into the container
|
| 12 |
-
COPY . .
|
| 13 |
-
|
| 14 |
-
# Tell the container to run your dashboard
|
| 15 |
-
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
COPY requirements.txt .
|
| 4 |
+
RUN pip install -r requirements.txt
|
| 5 |
+
COPY inference.py . # must be here
|
| 6 |
+
CMD ["python", "inference.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|