Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -10,8 +10,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 10 |
COPY main.py .
|
| 11 |
COPY mnist_model.keras .
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
|
| 16 |
# HuggingFace Spaces runs on port 7860
|
| 17 |
EXPOSE 7860
|
|
|
|
| 10 |
COPY main.py .
|
| 11 |
COPY mnist_model.keras .
|
| 12 |
|
| 13 |
+
# Copy .h5 as optional fallback (ignore if not present)
|
| 14 |
+
RUN if [ -f "/mnist_model.h5" ]; then cp /mnist_model.h5 .; fi || true
|
| 15 |
|
| 16 |
# HuggingFace Spaces runs on port 7860
|
| 17 |
EXPOSE 7860
|