update readme

This commit is contained in:
Michael Pilosov 2022-11-28 16:05:08 -07:00
parent 330874a4dc
commit bc8474ec9b

View File

@ -2,7 +2,13 @@
# How to interact with stockfish running in docker
Create a file called `stockfish` with the following contents:
Build the container `stockfish:15`:
```sh
make build
```
Create a file called `stockfish` with the following contents (one is included in this repo):
```sh
#!/bin/sh
@ -16,7 +22,7 @@ chmod +x stockfish
Now you can run the following to start stockfish:
```
docker run -d --rm --name stockfish -p 23249:23249 -p 23250:23250 -v $(pwd):/stockfish:ro -w /stockfish stockfish
make start
```
This will start a stockfish instance that will listen on port 23249 for commands.