Amogh1221 commited on
Commit
611e4e0
·
verified ·
1 Parent(s): 0059f93

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -33,11 +33,16 @@ RUN mkdir -p /app/scripts && \
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 && \
39
  cp stockfish /app/engine/deepcastle && \
40
- chmod +x /app/engine/deepcastle
 
41
 
42
  # ============================================================
43
  # LAUNCHER PREPARATION (The Search & Destroy Fix)
@@ -54,13 +59,12 @@ RUN echo "Searching for Launcher (main.py)..." && \
54
  fi
55
 
56
  # ============================================================
57
- # BRAIN PLACEMENT (The Neural Sync)
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
  # ============================================================
 
33
 
34
  WORKDIR /app/src
35
 
36
+ # Download required brains into src/ so they can be embedded during build (incbin)
37
+ RUN wget -q https://tests.stockfishchess.org/api/nn/nn-9a0cc2a62c52.nnue && \
38
+ wget -q https://tests.stockfishchess.org/api/nn/nn-47fc8b7fff06.nnue
39
+
40
  # Build from the detected 'src/' folder - ARCH=x86-64 is the official "Portable" build
41
  RUN make -j$(nproc) all ARCH=x86-64 && \
42
  mkdir -p /app/engine && \
43
  cp stockfish /app/engine/deepcastle && \
44
+ chmod +x /app/engine/deepcastle && \
45
+ cp *.nnue /app/engine/
46
 
47
  # ============================================================
48
  # LAUNCHER PREPARATION (The Search & Destroy Fix)
 
59
  fi
60
 
61
  # ============================================================
62
+ # BRAIN PLACEMENT (The Custom Sync)
63
  # ============================================================
64
  WORKDIR /app/engine
65
 
66
+ # Download ALL brains into the final folder for runtime search safety
67
+ RUN cp /app/src/*.nnue /app/engine/ && \
 
68
  wget -q https://huggingface.co/spaces/Amogh1221/deepcastle-api/resolve/main/output.nnue -O /app/engine/output.nnue
69
 
70
  # ============================================================