You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/server-vad/README.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This directory provides a single-stage runtime image that launches both `echokit_server` and `silero_vad_server` inside the same container.
4
4
5
-
-**Runtime image** (`debian:bookworm-slim`): installs runtime dependencies, downloads the CUDA-enabled`libtorch`bundle, and fetches the `v0.1.0` release binaries for `echokit_server`, `silero_vad_server`, and the `silero_vad.jit` model.
5
+
-**Runtime image** (`debian:bookworm-slim`): installs the runtime dependencies (adding `libopenblas` on arm64), selects the appropriate`libtorch`archive for the target architecture, and downloads the `v0.1.0` release binaries for `echokit_server`, `silero_vad_server`, and the `silero_vad.jit` model.
6
6
-**Supervisor script**: `/usr/local/bin/start_servers.sh` starts both services, relays signals, and keeps the container alive while either process is running.
7
7
8
8
## Run
@@ -27,18 +27,25 @@ The VAD server listens on port `8000` internally. Choose one of the following so
The build automatically detects `TARGETPLATFORM` and pulls the matching release artifacts (x86_64 or arm64). Override the downloaded releases by supplying `--build-arg ECHOKIT_VERSION=<version>` or `--build-arg VAD_VERSION=<version>` if you want a different tag.
34
+
35
+
## Multi-platform build
36
+
37
+
Use Buildx to produce and publish a multi-arch manifest in one command. BuildKit injects `TARGETPLATFORM` (`linux/amd64`, `linux/arm64`, etc.), so you do not need to set them manually.
38
+
39
+
```sh
40
+
docker buildx build \
41
+
--platform linux/amd64,linux/arm64 \
32
42
--build-arg ECHOKIT_VERSION=0.1.0 \
43
+
--build-arg VAD_VERSION=0.1.0 \
33
44
-t secondstate/echokit:latest-server-vad \
34
45
.
35
46
```
36
47
37
-
This Dockerfile always downloads the `linux-x86_64` release artifacts baked into the file. Update the URLs if you need to pin a different release.
38
-
39
-
## Platform support
40
-
41
-
Multi-platform builds are **not supported**. The image bundles CUDA-enabled `libtorch` and hard-coded `x86_64-unknown-linux-gnu` binaries for both servers, so `docker buildx` cannot produce working arm64 (or other architecture) variants.
48
+
Adjust the build arguments as needed; omit them to fall back to the defaults baked into the Dockerfile.
0 commit comments