Amogh1221 commited on
Commit
83ebae5
·
verified ·
1 Parent(s): c52f236

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -7
Dockerfile CHANGED
@@ -50,13 +50,17 @@ RUN echo "Searching for Launcher (main.py)..." && \
50
  exit 1; \
51
  fi
52
 
53
- # Map any NNUE files found in the repo
54
- RUN find /app -name "*.nnue" -exec cp {} /app/engine/custom_big.nnue \; || echo "No custom NNUE found."
55
-
56
- # Failsafe Brains
57
  WORKDIR /app/engine
58
- RUN if [ ! -f "nn-9a0cc2a62c52.nnue" ]; then wget https://tests.stockfishchess.org/api/nn/nn-9a0cc2a62c52.nnue; fi && \
59
- if [ ! -f "nn-47fc8b7fff06.nnue" ]; then wget https://tests.stockfishchess.org/api/nn/nn-47fc8b7fff06.nnue; fi
 
 
 
 
 
60
 
61
  # ============================================================
62
  # BACKEND SETUP
@@ -69,4 +73,4 @@ ENV PYTHONPATH="/app:/app/server"
69
  EXPOSE 7860
70
 
71
  # START: Use the guaranteed launcher in the root
72
- CMD ["python3", "/app/launcher.py"]
 
50
  exit 1; \
51
  fi
52
 
53
+ # ============================================================
54
+ # BRAIN PLACEMENT (The Neural Sync)
55
+ # ============================================================
 
56
  WORKDIR /app/engine
57
+
58
+ # Download your trained brain directly from HF Space to be 100% sure it exists
59
+ RUN wget -q https://huggingface.co/spaces/Amogh1221/deepcastle-api/resolve/main/output.nnue -O /app/engine/output.nnue
60
+
61
+ # Also download failsafe stockfish brains (backup)
62
+ RUN wget -q https://tests.stockfishchess.org/api/nn/nn-9a0cc2a62c52.nnue && \
63
+ wget -q https://tests.stockfishchess.org/api/nn/nn-47fc8b7fff06.nnue
64
 
65
  # ============================================================
66
  # BACKEND SETUP
 
73
  EXPOSE 7860
74
 
75
  # START: Use the guaranteed launcher in the root
76
+ CMD ["python3", "/app/launcher.py"]