最后活跃于 1731510464

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"]