最後活躍 1731510464

修訂 f60f3500d1c224e020828c0a69c89b82164d1246

Distroless-5.dockerfile 原始檔案
1# Start by building the application.
2FROM golang:1.18 as build
3
4WORKDIR /go/src/app
5COPY . .
6
7RUN go mod download
8RUN CGO_ENABLED=0 go build -o /go/bin/app
9
10# Now copy it into our base image.
11FROM gcr.io/distroless/static-debian12
12COPY --from=build /go/bin/app /
13CMD ["/app"]