ARG VARIANT FROM python:3$VARIANT LABEL org.opencontainers.image.authors="Lichess Bot Devs " LABEL org.opencontainers.image.description="A bridge between Lichess API and chess engines" LABEL org.opencontainers.image.source="https://github.com/lichess-bot-devs/lichess-bot" LABEL org.opencontainers.image.documentation="https://github.com/lichess-bot-devs/lichess-bot/wiki/How-to-use-the-Docker-image" LABEL org.opencontainers.image.title="lichess-bot" LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later" ENV LICHESS_BOT_DOCKER="true" ENV PYTHONDONTWRITEBYTECODE=1 ARG LICHESS_DIR=/lichess-bot WORKDIR $LICHESS_DIR COPY . . RUN python3 -m pip install --no-cache-dir -r requirements.txt RUN chmod +x docker/copy_files.sh && ln -s $LICHESS_DIR/config/config.yml config.yml CMD docker/copy_files.sh && python3 lichess-bot.py ${OPTIONS} --disable_auto_logging