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 RUN apt update && apt upgrade && apt install ca-certificates openssl COPY --from=build /workdir/app app ENTRYPOINT ["/app"]