Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
| 3 |
# Install system dependencies
|
|
@@ -32,10 +33,6 @@ RUN mkdir -p /app/scripts && \
|
|
| 32 |
|
| 33 |
WORKDIR /app/src
|
| 34 |
|
| 35 |
-
# Download required brains into src/ so they can be embedded during build
|
| 36 |
-
RUN wget -q https://tests.stockfishchess.org/api/nn/nn-9a0cc2a62c52.nnue && \
|
| 37 |
-
wget -q https://tests.stockfishchess.org/api/nn/nn-47fc8b7fff06.nnue
|
| 38 |
-
|
| 39 |
# Build from the detected 'src/' folder - ARCH=x86-64 is the official "Portable" build
|
| 40 |
RUN make -j$(nproc) all ARCH=x86-64 && \
|
| 41 |
mkdir -p /app/engine && \
|
|
@@ -61,8 +58,10 @@ RUN echo "Searching for Launcher (main.py)..." && \
|
|
| 61 |
# ============================================================
|
| 62 |
WORKDIR /app/engine
|
| 63 |
|
| 64 |
-
# Download
|
| 65 |
-
RUN wget -q https://
|
|
|
|
|
|
|
| 66 |
|
| 67 |
# ============================================================
|
| 68 |
# BACKEND SETUP
|
|
|
|
| 1 |
+
# Use Python 3.12 slim
|
| 2 |
FROM python:3.12-slim
|
| 3 |
|
| 4 |
# Install system dependencies
|
|
|
|
| 33 |
|
| 34 |
WORKDIR /app/src
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
# Build from the detected 'src/' folder - ARCH=x86-64 is the official "Portable" build
|
| 37 |
RUN make -j$(nproc) all ARCH=x86-64 && \
|
| 38 |
mkdir -p /app/engine && \
|
|
|
|
| 58 |
# ============================================================
|
| 59 |
WORKDIR /app/engine
|
| 60 |
|
| 61 |
+
# Download ALL brains (Standard + Your Custom one) into the SAME folder as the binary
|
| 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 |
+
wget -q https://huggingface.co/spaces/Amogh1221/deepcastle-api/resolve/main/output.nnue -O /app/engine/output.nnue
|
| 65 |
|
| 66 |
# ============================================================
|
| 67 |
# BACKEND SETUP
|