Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -1,11 +1,19 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
COPY requirements.txt /app/
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
-
COPY app.py
|
| 9 |
|
| 10 |
EXPOSE 7860
|
| 11 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
+
COPY requirements.txt .
|
|
|
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
|
| 7 |
+
COPY app.py .
|
| 8 |
|
| 9 |
EXPOSE 7860
|
| 10 |
+
CMD ["python", "app.py"]
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
**Step 3 — Push / commit** the files (you can do it directly in the HF web editor — no git needed).
|
| 16 |
+
|
| 17 |
+
The Space will build automatically. Once the status dot goes **green**, visit:
|
| 18 |
+
```
|
| 19 |
+
https://hedronCreeper-hello-docker.hf.space
|