update readme
This commit is contained in:
parent
330874a4dc
commit
bc8474ec9b
10
README.md
10
README.md
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user