Amogh1221 commited on
Commit
671aa6a
·
1 Parent(s): 0972f7d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -29,6 +29,11 @@ RUN if [ -d /app/engine/src ]; then BUILD_DIR=/app/engine/src; \
29
  elif [ -d /app/src ]; then BUILD_DIR=/app/src; \
30
  else echo "Engine source dir not found"; exit 1; fi && \
31
  cd "$BUILD_DIR" && \
 
 
 
 
 
32
  make -j$(nproc) build ARCH=x86-64-sse41-popcnt && \
33
  mkdir -p /app/engine_bin && \
34
  cp stockfish /app/engine_bin/deepcastle && \
@@ -48,6 +53,10 @@ RUN LAUNCHER_PATH=$(find /app -name "main.py" | head -n 1) && \
48
  RUN if [ -f /app/output.nnue ]; then cp /app/output.nnue /app/engine_bin/output.nnue; fi && \
49
  if [ -f /app/small_output.nnue ]; then cp /app/small_output.nnue /app/engine_bin/small_output.nnue; fi
50
 
 
 
 
 
51
  # Force permissions
52
  RUN chmod -R 777 /app/engine_bin
53
 
@@ -64,6 +73,7 @@ RUN if [ -f /app/server/requirements.txt ]; then \
64
  ENV ENGINE_PATH=/app/engine_bin/deepcastle
65
  ENV DEEPCASTLE_ENGINE_PATH=/app/engine_bin/deepcastle
66
  ENV STOCKFISH_ENGINE_PATH=/usr/games/stockfish
 
67
  ENV NNUE_PATH=/app/engine_bin/output.nnue
68
  ENV NNUE_SMALL_PATH=/app/engine_bin/small_output.nnue
69
  ENV PYTHONPATH="/app:/app/server"
 
29
  elif [ -d /app/src ]; then BUILD_DIR=/app/src; \
30
  else echo "Engine source dir not found"; exit 1; fi && \
31
  cd "$BUILD_DIR" && \
32
+ if [ ! -f ../scripts/net.sh ]; then \
33
+ mkdir -p ../scripts; \
34
+ printf '#!/bin/sh\n# HF minimal layout fallback: skip default net fetch\nexit 0\n' > ../scripts/net.sh; \
35
+ chmod +x ../scripts/net.sh; \
36
+ fi && \
37
  make -j$(nproc) build ARCH=x86-64-sse41-popcnt && \
38
  mkdir -p /app/engine_bin && \
39
  cp stockfish /app/engine_bin/deepcastle && \
 
53
  RUN if [ -f /app/output.nnue ]; then cp /app/output.nnue /app/engine_bin/output.nnue; fi && \
54
  if [ -f /app/small_output.nnue ]; then cp /app/small_output.nnue /app/engine_bin/small_output.nnue; fi
55
 
56
+ # Download official Stockfish NNUE for analysis/review engine
57
+ RUN wget -q -O /app/engine_bin/stockfish.nnue \
58
+ https://tests.stockfishchess.org/api/nn/nn-9a0cc2a62c52.nnue
59
+
60
  # Force permissions
61
  RUN chmod -R 777 /app/engine_bin
62
 
 
73
  ENV ENGINE_PATH=/app/engine_bin/deepcastle
74
  ENV DEEPCASTLE_ENGINE_PATH=/app/engine_bin/deepcastle
75
  ENV STOCKFISH_ENGINE_PATH=/usr/games/stockfish
76
+ ENV STOCKFISH_NNUE_PATH=/app/engine_bin/stockfish.nnue
77
  ENV NNUE_PATH=/app/engine_bin/output.nnue
78
  ENV NNUE_SMALL_PATH=/app/engine_bin/small_output.nnue
79
  ENV PYTHONPATH="/app:/app/server"