Skip to content

Commit b7aee0f

Browse files
Matthew WongNick Turner
authored andcommitted
Use go-runner as base image
1 parent 7a1bba4 commit b7aee0f

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@
1414
## BUILD ARGS ##
1515
################################################################################
1616
# This build arg allows the specification of a custom Golang image.
17-
ARG GOLANG_IMAGE=golang:1.17.4
17+
ARG GOLANG_IMAGE=golang:1.17.5
1818

1919
# The distroless image on which the CPI manager image is built.
2020
#
2121
# Please do not use "latest". Explicit tags should be used to provide
22-
# deterministic builds. This image doesn't have semantic version tags, but
23-
# the fully-qualified image can be obtained by entering
24-
# "gcr.io/distroless/static:latest" in a browser and then copying the
25-
# fully-qualified image from the web page.
26-
ARG DISTROLESS_IMAGE=gcr.io/distroless/static@sha256:1cc74da80bbf80d89c94e0c7fe22830aa617f47643f2db73f66c8bd5bf510b25
22+
# deterministic builds. Follow what kubernetes uses to build
23+
# kube-controller-manager, for example for 1.23.x:
24+
# https://github.com/kubernetes/kubernetes/blob/release-1.23/build/common.sh#L94
25+
ARG DISTROLESS_IMAGE=k8s.gcr.io/build-image/go-runner:v2.3.1-go1.17.5-bullseye.0
2726

2827
################################################################################
2928
## BUILD STAGE ##

0 commit comments

Comments
 (0)