Skip to content

Commit f1294b4

Browse files
committed
update go buster 1.14 + distroless static
1 parent 4153c03 commit f1294b4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

go_module_distroless/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
############################
22
# STEP 1 build executable binary
33
############################
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
77

88
# Ensure ca-certficates are up to date
99
RUN update-ca-certificates

go_module_distroless_static/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
############################
22
# STEP 1 build executable binary
33
############################
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
77

88
# Ensure ca-certficates are up to date
99
RUN update-ca-certificates
@@ -29,7 +29,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
2929
############################
3030
# using static nonroot image
3131
# 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
3333

3434
# Copy our static executable
3535
COPY --from=builder /go/bin/hello /go/bin/hello

0 commit comments

Comments
 (0)