funterpie commited on
Commit
d738f06
·
verified ·
1 Parent(s): d05e559

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Optional fallback (if you want .h5 too)
14
- COPY mnist_model.h5 . 2>/dev/null || true
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