Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -7
Dockerfile
CHANGED
|
@@ -50,13 +50,17 @@ RUN echo "Searching for Launcher (main.py)..." && \
|
|
| 50 |
exit 1; \
|
| 51 |
fi
|
| 52 |
|
| 53 |
-
#
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
# Failsafe Brains
|
| 57 |
WORKDIR /app/engine
|
| 58 |
-
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|