Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docker images #956

Merged
merged 9 commits into from
May 9, 2024
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -14,4 +14,6 @@ RUN python3 -m pip install --no-cache-dir -r requirements.txt

ARG CONF_FOLDER=$LICHESS_DIR/config

RUN chmod +x docker/copy_files.sh

CMD docker/copy_files.sh && python3 lichess-bot.py ${OPTIONS} --disable_auto_logging
10 changes: 5 additions & 5 deletions docker/copy_files.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh

ln -s /lichess-bot/config/config.yml config.yml
ln -s /lichess-bot/config/config.yml /lichess-bot/

if [ -f /lichess-bot/config/homemade.py ]; then
ln -sf /lichess-bot/config/homemade.py homemade.py
if [ -e /lichess-bot/config/homemade.py ]; then
ln -sf /lichess-bot/config/homemade.py /lichess-bot/
fi

if [ -f /lichess-bot/config/extra_game_handlers.py ]; then
ln -sf /lichess-bot/config/extra_game_handlers.py extra_game_handlers.py
if [ -e /lichess-bot/config/extra_game_handlers.py ]; then
ln -sf /lichess-bot/config/extra_game_handlers.py /lichess-bot/
fi
2 changes: 2 additions & 0 deletions wiki/How-to-use-the-Docker-image.md
Original file line number Diff line number Diff line change
@@ -22,6 +22,8 @@ You can also find documentation [here](https://github.com/lichess-bot-devs/liche
Once your configuration files are ready, let's say in `/home/me/myEngine` folder, run the following command:
```docker run -d -v /home/me/myEngine:/lichess-bot/config --name myBot lichessbotdevs/lichess-bot```

**NOTE**: Prefer using absolute paths over relative paths, as relative ones may cause problems.

That's all!

### Warning: