aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile_distroless_vendored
blob: 6c843072e96156e5d152645865dbd06054c391b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
FROM golang:1.21 as builder
WORKDIR /milla
COPY go.sum go.mod /milla/
COPY vendor /milla/vendor
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"]