FROM golang:1.23.3 as build WORKDIR /workdir COPY go.mod go.sum /workdir/ RUN go mod download COPY . /workdir RUN go build -ldflags='-s -w' -o app . FROM debian:bookworm-slim COPY --from=build /workdir/app app ENTRYPOINT ["/app"]