# 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"]