Files
Chess/Dockerfile
T
2026-07-07 21:08:31 -04:00

22 lines
445 B
Docker

FROM python:3.11-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends stockfish \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
ENV STOCKFISH_PATH=/usr/games/stockfish
ENV ANALYSIS_DEPTH=14
ENV ANALYSIS_CONCURRENCY=2
ENV DATA_DIR=/app/data
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]