CoachDeepBlue / Dockerfile
BryanBradfo's picture
Update Dockerfile
cd1b741 verified
raw
history blame contribute delete
657 Bytes
FROM python:3.10-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
stockfish \
make \
wget && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN git clone https://github.com/lichess-org/chess-openings.git /app/data/lichess_openings && \
cd /app/data/lichess_openings && \
make
COPY --chown=user . /app
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD ["python", "app.py"]