Skip to content

Commit c3f7de9

Browse files
authored
Update README.md
1 parent fbdac93 commit c3f7de9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

docker/server/README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,32 @@ This directory contains a multi-stage Dockerfile for producing a lean runtime im
55
- **Builder stage** (`rust:1.85-slim`): installs the minimal Rust toolchain dependencies, clones `https://github.com/second-state/echokit_server`, and compiles the project in release mode.
66
- **Runtime stage** (`debian:bookworm-slim`): installs the required runtime libraries, copies the compiled binary and default `config.toml`, and sets `RUST_LOG=info` before starting the server with that config.
77

8+
## Run
9+
10+
Mount your local `config.toml` so the container uses your configuration:
11+
12+
```sh
13+
docker run --rm -p 8080:8080 -v $(pwd)/config.toml:/app/config.toml secondstate/echokit:latest-server
14+
```
15+
16+
The container executes `echokit_server config.toml` by default, reading logs at the `info` level.
17+
818
## Build
919

1020
```sh
11-
docker build -t echokit:latest-server .
21+
docker build -t secondstate/echokit:latest-server .
1222
```
1323

14-
## Run
24+
## Multi-platform build
1525

16-
Mount your local `config.toml` so the container uses your configuration:
26+
```sh
27+
docker buildx build . --platform linux/arm64,linux/amd64 --tag secondstate/echokit:latest-server -f Dockerfile
28+
```
29+
30+
## Publish
1731

1832
```sh
19-
docker run --rm -v $(pwd)/config.toml:/app/config.toml echokit:latest-server
33+
docker login
34+
docker push secondstate/echokit:latest-server
2035
```
2136

22-
The container executes `echokit_server config.toml` by default, reading logs at the `info` level.

0 commit comments

Comments
 (0)