FROM golang:1.24.2-alpine3.21 as builder ARG CGO_ENABLED=0 WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN go build FROM scratch COPY --from=builder /app/server /server ENTRYPOINT ["/server"]