FROM golang:1.25-alpine AS builder WORKDIR /app COPY go.mod ./ COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app FROM alpine:latest WORKDIR /root/ COPY --from=builder /app/app . CMD ["./app"]