Files

17 lines
607 B
Docker
Raw Permalink Normal View History

# 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 .
2026-07-21 22:55:38 +01:00
FROM alpine:3.24
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"]