checker-email-keys/Dockerfile
Pierre-Olivier Mercier eb7b6d1a90 Migrate to checker-sdk-go v1.3.0 with standalone build tag
The SDK split the HTTP server scaffolding into the new
checker-sdk-go/checker/server subpackage and renamed
CheckerInteractive to server.Interactive. Update main.go to import
server and call server.New, switch the compile-time assertion to
server.Interactive, and isolate the interactive form code behind the
standalone build tag so plugin/builtin builds skip net/http entirely.
2026-04-24 15:26:09 +07:00

14 lines
370 B
Docker

FROM golang:1.25-alpine AS builder
ARG CHECKER_VERSION=custom-build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -tags standalone -ldflags "-X main.Version=${CHECKER_VERSION}" -o /checker-email-keys .
FROM scratch
COPY --from=builder /checker-email-keys /checker-email-keys
EXPOSE 8080
ENTRYPOINT ["/checker-email-keys"]