# Build stage FROM golang:1.24 AS builder WORKDIR /usr/src/app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN go build -v -o /usr/local/bin/app ./... # Final stage FROM debian:12-slim RUN apt-get update && apt-get install -y ca-certificates WORKDIR /usr/src/app COPY --from=builder /usr/local/bin/app /usr/local/bin/app CMD ["app"]