Build multi-arch images for amd64 and arm64

The build stage runs on the build platform and cross-compiles for the
target, so arm64 needs no emulation. The configuration check runs a
native build, since the target binary may not run on the builder.
This commit is contained in:
2026-09-24 12:45:47 -07:00
parent 212aa26fbc
commit 8a201db412
2 changed files with 19 additions and 5 deletions
+7
View File
@@ -40,6 +40,13 @@ docker compose up -d --build
sudo ./egress-lockdown.sh # optional second layer; see below
```
The Dockerfile cross-compiles, so one build covers amd64 and arm64 without
emulation:
```sh
docker buildx build --platform linux/amd64,linux/arm64 -t mailsink .
```
Point applications at the Docker host on port 25. Any username and password
are accepted, so apps configured for authenticated SMTP work unchanged. There
is no TLS: clients must allow a plaintext connection.