diff --git a/code-samples/serving/multi-container/servingcontainer/Dockerfile b/code-samples/serving/multi-container/servingcontainer/Dockerfile index 61fafe02c1..bb586dbc3b 100644 --- a/code-samples/serving/multi-container/servingcontainer/Dockerfile +++ b/code-samples/serving/multi-container/servingcontainer/Dockerfile @@ -1,7 +1,7 @@ # Use the official Golang image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. # https://hub.docker.com/_/golang -FROM golang:1.16 as builder +FROM golang:1.21 as builder ARG TARGETOS ARG TARGETARCH diff --git a/code-samples/serving/multi-container/servingcontainer/go.mod b/code-samples/serving/multi-container/servingcontainer/go.mod index 8ec825cae3..212c0fff80 100644 --- a/code-samples/serving/multi-container/servingcontainer/go.mod +++ b/code-samples/serving/multi-container/servingcontainer/go.mod @@ -1,3 +1,3 @@ module github.com/knative/docs/code-samples/serving/multi-container/servingcontainer -go 1.15 +go 1.21 diff --git a/code-samples/serving/multi-container/sidecarcontainer/Dockerfile b/code-samples/serving/multi-container/sidecarcontainer/Dockerfile index 8a08726a4f..d03e659c81 100644 --- a/code-samples/serving/multi-container/sidecarcontainer/Dockerfile +++ b/code-samples/serving/multi-container/sidecarcontainer/Dockerfile @@ -1,7 +1,7 @@ # Use the official Golang image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. # https://hub.docker.com/_/golang -FROM golang:1.16 as builder +FROM golang:1.21 as builder ARG TARGETOS ARG TARGETARCH diff --git a/code-samples/serving/multi-container/sidecarcontainer/go.mod b/code-samples/serving/multi-container/sidecarcontainer/go.mod index 6746b2c51e..52d94ee303 100644 --- a/code-samples/serving/multi-container/sidecarcontainer/go.mod +++ b/code-samples/serving/multi-container/sidecarcontainer/go.mod @@ -1,3 +1,3 @@ module github.com/knative/docs/code-samples/serving/multi-container/sidecarcontainer -go 1.15 +go 1.21