Amogh1221 commited on
Commit
5fa7cc1
·
verified ·
1 Parent(s): ee0df29

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,3 +1,4 @@
 
1
  FROM python:3.12-slim
2
 
3
  # Install system dependencies
@@ -59,13 +60,14 @@ RUN mkdir -p /app/engine && \
59
  # Download standard brains as fallback into the engine folder
60
  WORKDIR /app/engine
61
  RUN wget -q https://tests.stockfishchess.org/api/nn/nn-9a0cc2a62c52.nnue && \
62
- wget -q https://tests.stockfishchess.org/api/nn/nn-47fc8b7fff06.nnue
 
63
 
64
  # ============================================================
65
  # BACKEND SETUP
66
  # ============================================================
67
  WORKDIR /app
68
- RUN pip install --no-cache-dir fastapi uvicorn python-chess pydantic
69
 
70
  # Explicit Paths for Engine & Brain
71
  ENV ENGINE_PATH=/app/engine/deepcastle
 
1
+ # Use Python 3.12 slim
2
  FROM python:3.12-slim
3
 
4
  # Install system dependencies
 
60
  # Download standard brains as fallback into the engine folder
61
  WORKDIR /app/engine
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
+ chmod -R 777 /app/engine
65
 
66
  # ============================================================
67
  # BACKEND SETUP
68
  # ============================================================
69
  WORKDIR /app
70
+ RUN pip install --no-cache-dir fastapi uvicorn python-chess==1.10.0 pydantic
71
 
72
  # Explicit Paths for Engine & Brain
73
  ENV ENGINE_PATH=/app/engine/deepcastle