A docker image to make your own engine available as a Lichess bot.
This image is a ready to use integration of lichess-bot, the official bridge between Lichess Bot API and bots.
First, if you don't already have one, you should create a Lichess OAuth token.
Then, on your docker host, create a folder where you will put your engine configuration file, and, possibly, the program that runs your engine.
The configuration file should be named config.yml
You can see an example of this file using the following command: docker run --rm --entrypoint=cat fathzer/lichess-bridge config.yml.default
. You can also find documentation about the latest lichess release (maybe not the one in this image) here.
Once your configuration file is ready, let say in /home/me/myEngine folder, run the following command:
docker run -d /home/me/myEngine:/engine fathzer/lichess-bridge
That's all!
If you need, you can see the lichess release information using the following command: docker run --rm --entrypoint=cat fathzer/lichess-bridge lib/versioning.yml
This image is based on Alpine. You can install new software using the apk
command.
For example to install java 11, the docker file would look like:
FROM fathzer/lichess-bridge
RUN apk add --no-cache openjdk11-jre
docker build . -t fathzer/lichess-bridge