From e2ae9c7aa1add633640e81fc8a8cc88b7394b40d Mon Sep 17 00:00:00 2001 From: Guido Petri <18634426+guidopetri@users.noreply.github.com> Date: Fri, 5 Apr 2024 21:30:07 -0500 Subject: [PATCH] install stockfish to dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7a27d16..8cb045f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ RUN apt-get update \ python3-dev \ libpq-dev \ cron \ + make \ + g++ \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives @@ -26,6 +28,13 @@ ARG POETRY_NO_INTERACTION=1 ARG POETRY_VIRTUALENVS_CREATE=false RUN curl -sSL https://install.python-poetry.org | python3 - +RUN curl -L --output stockfish_13.tar.gz https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_13.tar.gz && \ + mkdir -p /stockfish_src && \ + tar -xzvf stockfish_13.tar.gz -C /stockfish_src && \ + make -C /stockfish_src/Stockfish-sf_13/src -j profile-build && \ + cp /stockfish_src/Stockfish-sf_13/src/stockfish / && \ + rm -r /stockfish_src + COPY pyproject.toml poetry.lock /app RUN $POETRY_HOME/bin/poetry install --only main --no-root --no-ansi --no-cache \