2026-09-07 00:42:58 +00:00
|
|
|
# The zampler binaries are cross-compiled in CI (.gitea/workflows/build.yml) so
|
|
|
|
|
# the compile can use a persistent Go module + build cache and avoid emulation.
|
|
|
|
|
# This image is just the runtime wrapper around the prebuilt static binary;
|
|
|
|
|
# buildx sets TARGETARCH per platform and we copy the matching binary.
|
2026-09-06 15:26:36 +01:00
|
|
|
#
|
2026-09-07 00:42:58 +00:00
|
|
|
# For a local build:
|
|
|
|
|
# GOOS=linux GOARCH=amd64 go build -o dist/zampler-linux-amd64 .
|
|
|
|
|
# docker build --build-arg TARGETARCH=amd64 .
|
2026-07-21 22:55:38 +01:00
|
|
|
|
|
|
|
|
FROM alpine:3.24
|
|
|
|
|
|
2026-09-07 00:42:58 +00:00
|
|
|
ARG TARGETARCH
|
|
|
|
|
COPY dist/zampler-linux-${TARGETARCH} /usr/local/bin/zampler
|
2026-07-21 22:55:38 +01:00
|
|
|
|
|
|
|
|
ENTRYPOINT ["zampler"]
|
2026-09-01 10:52:12 +01:00
|
|
|
CMD ["-s", "/db/zampler.sqlite3", "/data"]
|