Amogh1221 commited on
Commit
94cbe4f
·
verified ·
1 Parent(s): 31833ae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile CHANGED
@@ -43,6 +43,20 @@ RUN make -j$(nproc) build ARCH=x86-64 && \
43
  cp stockfish /app/engine/deepcastle && \
44
  chmod +x /app/engine/deepcastle
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  # ============================================================
47
  # BRAIN PLACEMENT (The Neural Sync)
48
  # ============================================================
 
43
  cp stockfish /app/engine/deepcastle && \
44
  chmod +x /app/engine/deepcastle
45
 
46
+ # ============================================================
47
+ # LAUNCHER PREPARATION (The Search & Destroy Fix)
48
+ # ============================================================
49
+ WORKDIR /app
50
+ RUN echo "Searching for Launcher (main.py)..." && \
51
+ LAUNCHER_PATH=$(find /app -name "main.py" | head -n 1) && \
52
+ if [ -n "$LAUNCHER_PATH" ]; then \
53
+ echo "Found launcher at: $LAUNCHER_PATH. Copying to root..."; \
54
+ cp "$LAUNCHER_PATH" /app/launcher.py; \
55
+ else \
56
+ echo "CRITICAL ERROR: main.py not found in the repository!"; \
57
+ exit 1; \
58
+ fi
59
+
60
  # ============================================================
61
  # BRAIN PLACEMENT (The Neural Sync)
62
  # ============================================================