aboutsummaryrefslogblamecommitdiffstats
path: root/Dockerfile_distroless
blob: a5a7c47546d4eacc24f02ef8c80d40e8ea805032 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                      








                                                 
FROM golang:1.22-alpine3.20 AS builder
WORKDIR /milla
COPY go.sum go.mod /milla/
RUN go mod download
COPY *.go /milla/
RUN CGO_ENABLED=0 go build

FROM gcr.io/distroless/static-debian12
COPY --from=builder /milla/milla "/usr/bin/milla"
ENTRYPOINT ["milla"]