Files
aneurin 7f57e25dcf
Build / build-and-push (push) Successful in 6m7s
Build a multi-arch (amd64 + arm64) image (!4)
Co-authored-by: Aneurin Barker Snook <aneurin@aneur.in>
2026-09-07 00:42:58 +00:00

17 lines
607 B
Docker

# 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.
#
# For a local build:
# GOOS=linux GOARCH=amd64 go build -o dist/zampler-linux-amd64 .
# docker build --build-arg TARGETARCH=amd64 .
FROM alpine:3.24
ARG TARGETARCH
COPY dist/zampler-linux-${TARGETARCH} /usr/local/bin/zampler
ENTRYPOINT ["zampler"]
CMD ["-s", "/db/zampler.sqlite3", "/data"]