diff --git a/Dockerfile b/Dockerfile index 751f4f8037f7..cc20cdf9483a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,11 @@ # syntax=docker/dockerfile:1.3 ARG BASE_VARIANT=alpine -ARG GO_VERSION=1.16.7 - -FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${BASE_VARIANT} AS gostable -FROM --platform=$BUILDPLATFORM golang:1.17rc1-${BASE_VARIANT} AS golatest - -FROM gostable AS go-linux -FROM gostable AS go-darwin -FROM gostable AS go-windows-amd64 -FROM gostable AS go-windows-386 -FROM gostable AS go-windows-arm -FROM golatest AS go-windows-arm64 -FROM go-windows-${TARGETARCH} AS go-windows +ARG GO_VERSION=1.17.0 FROM --platform=$BUILDPLATFORM tonistiigi/xx@sha256:620d36a9d7f1e3b102a5c7e8eff12081ac363828b3a44390f24fa8da2d49383d AS xx -FROM go-${TARGETOS} AS build-base-alpine +FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${BASE_VARIANT} AS build-base-alpine COPY --from=xx / / RUN apk add --no-cache clang lld llvm file git WORKDIR /go/src/github.com/docker/cli diff --git a/appveyor.yml b/appveyor.yml index 5977a47400b7..1bf25b4420d7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,7 +4,7 @@ clone_folder: c:\gopath\src\github.com\docker\cli environment: GOPATH: c:\gopath - GOVERSION: 1.16.7 + GOVERSION: 1.17.0 DEPVERSION: v0.4.1 install: diff --git a/dockerfiles/Dockerfile.binary-native b/dockerfiles/Dockerfile.binary-native index fffd7548e509..4d3406e24dd6 100644 --- a/dockerfiles/Dockerfile.binary-native +++ b/dockerfiles/Dockerfile.binary-native @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.16.7 +ARG GO_VERSION=1.17.0 FROM golang:${GO_VERSION}-alpine diff --git a/dockerfiles/Dockerfile.dev b/dockerfiles/Dockerfile.dev index 5561d0de2cfb..1b066173ddac 100644 --- a/dockerfiles/Dockerfile.dev +++ b/dockerfiles/Dockerfile.dev @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1.3 -ARG GO_VERSION=1.16.7 +ARG GO_VERSION=1.17.0 FROM golang:${GO_VERSION}-alpine AS golang ENV CGO_ENABLED=0 diff --git a/dockerfiles/Dockerfile.e2e b/dockerfiles/Dockerfile.e2e index 75606629b570..5125f46eb273 100644 --- a/dockerfiles/Dockerfile.e2e +++ b/dockerfiles/Dockerfile.e2e @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.16.7 +ARG GO_VERSION=1.17.0 # Use Debian based image as docker-compose requires glibc. FROM golang:${GO_VERSION}-buster diff --git a/dockerfiles/Dockerfile.lint b/dockerfiles/Dockerfile.lint index 15b18aae5e12..8155b358d2f5 100644 --- a/dockerfiles/Dockerfile.lint +++ b/dockerfiles/Dockerfile.lint @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1.3 -ARG GO_VERSION=1.16.7 +ARG GO_VERSION=1.17.0 ARG GOLANGCI_LINT_VERSION=v1.23.8 FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint