knox revisó este gist . Ir a la revisión
1 file changed, 0 insertions, 0 deletions
Distroless-5.dockerfile renombrado a Distroless-5.Dockerfile
Archivo renombrado sin cambios
knox revisó este gist . Ir a la revisión
1 file changed, 13 insertions
Distroless-5.dockerfile(archivo creado)
@@ -0,0 +1,13 @@ | |||
1 | + | # Start by building the application. | |
2 | + | FROM golang:1.18 as build | |
3 | + | ||
4 | + | WORKDIR /go/src/app | |
5 | + | COPY . . | |
6 | + | ||
7 | + | RUN go mod download | |
8 | + | RUN CGO_ENABLED=0 go build -o /go/bin/app | |
9 | + | ||
10 | + | # Now copy it into our base image. | |
11 | + | FROM gcr.io/distroless/static-debian12 | |
12 | + | COPY --from=build /go/bin/app / | |
13 | + | CMD ["/app"] |