File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
go_module_distroless_static Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
# ###########################
2
2
# STEP 1 build executable binary
3
3
# ###########################
4
- # golang alpine 1.13.5
5
- FROM golang@sha256:0991060a1447cf648bab7f6bb60335d1243930e38420bee8fec3db1267b84cfa as builder
4
+ # golang alpine 1.14.1
5
+ FROM golang@sha256:244a736db4a1d2611d257e7403c729663ce2eb08d4628868f9d9ef2735496659 as builder
6
6
7
7
# Install git + SSL ca certificates.
8
8
# Git is required for fetching the dependencies.
Original file line number Diff line number Diff line change 1
1
# ###########################
2
2
# STEP 1 build executable binary
3
3
# ###########################
4
- # golang alpine 1.13.5
5
- FROM golang@sha256:0991060a1447cf648bab7f6bb60335d1243930e38420bee8fec3db1267b84cfa as builder
4
+ # golang alpine 1.14.1
5
+ FROM golang@sha256:244a736db4a1d2611d257e7403c729663ce2eb08d4628868f9d9ef2735496659 as builder
6
6
7
7
# Install git + SSL ca certificates.
8
8
# Git is required for fetching the dependencies.
Original file line number Diff line number Diff line change 1
1
# ###########################
2
2
# STEP 1 build executable binary
3
3
# ###########################
4
- # golang debian buster 1.13.6 linux/amd64
5
- # https://github.com/docker-library/golang/blob/master/1.13 /buster/Dockerfile
6
- FROM golang@sha256:93a56423351235e070b3630e0a8b3e27d5e868883d4dff591f676315f208a574 as builder
4
+ # golang debian buster 1.14 linux/amd64
5
+ # https://github.com/docker-library/golang/blob/master/1.14 /buster/Dockerfile
6
+ FROM golang@sha256:eee8c0a92bc950ecb20d2dffe46546da12147e3146f1b4ed55072c10cacf4f4c as builder
7
7
8
8
# Ensure ca-certficates are up to date
9
9
RUN update-ca-certificates
@@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -a -installsuffix cgo -o
27
27
# ###########################
28
28
# using base nonroot image
29
29
# user:group is nobody:nobody, uid:gid = 65534:65534
30
- FROM gcr.io/distroless/base@sha256:2b177fbc9a31b85254d264e1fc9a65accc6636d6f1033631b9b086ee589d1fe2
30
+ FROM gcr.io/distroless/base@sha256:2b0a8e9a13dcc168b126778d9e947a7081b4d2ee1ee122830d835f176d0e2a70
31
31
32
32
# Copy our static executable
33
33
COPY --from=builder /go/bin/hello /go/bin/hello
Original file line number Diff line number Diff line change 1
1
# ###########################
2
2
# STEP 1 build executable binary
3
3
# ###########################
4
- # golang debian buster 1.13.6 linux/amd64
5
- # https://github.com/docker-library/golang/blob/master/1.13 /buster/Dockerfile
6
- FROM golang@sha256:93a56423351235e070b3630e0a8b3e27d5e868883d4dff591f676315f208a574 as builder
4
+ # golang debian buster 1.14.1 linux/amd64
5
+ # https://github.com/docker-library/golang/blob/master/1.14 /buster/Dockerfile
6
+ FROM golang@sha256:eee8c0a92bc950ecb20d2dffe46546da12147e3146f1b4ed55072c10cacf4f4c as builder
7
7
8
8
# Ensure ca-certficates are up to date
9
9
RUN update-ca-certificates
@@ -29,7 +29,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
29
29
# ###########################
30
30
# using static nonroot image
31
31
# user:group is nobody:nobody, uid:gid = 65534:65534
32
- FROM gcr.io/distroless/static@sha256:08322afd57db6c2fd7a4264bf0edd9913176835585493144ee9ffe0c8b576a76
32
+ FROM gcr.io/distroless/static@sha256:c6d5981545ce1406d33e61434c61e9452dad93ecd8397c41e89036ef977a88f4
33
33
34
34
# Copy our static executable
35
35
COPY --from=builder /go/bin/hello /go/bin/hello
You can’t perform that action at this time.
0 commit comments