From 1c0927a0414d7eb1bfe7c39a6e5882c24a8570f1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 15 Sep 2021 12:47:50 +0200 Subject: [PATCH] Dockerfile: update tonistiigi/xx to 1.0.0-rc.2, add XX_VERSION arg Signed-off-by: Sebastiaan van Stijn (cherry picked from commit 47c7a096ff0180599e67a7aaffbd5941038525a3) Signed-off-by: Sebastiaan van Stijn --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1bcd4afded..63e6ba8faf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ ARG BASE_VARIANT=alpine ARG GO_VERSION=1.16.8 +ARG XX_VERSION=1.0.0-rc.2 FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${BASE_VARIANT} AS gostable FROM --platform=$BUILDPLATFORM golang:1.17rc1-${BASE_VARIANT} AS golatest @@ -14,7 +15,7 @@ FROM gostable AS go-windows-arm FROM golatest AS go-windows-arm64 FROM go-windows-${TARGETARCH} AS go-windows -FROM --platform=$BUILDPLATFORM tonistiigi/xx@sha256:620d36a9d7f1e3b102a5c7e8eff12081ac363828b3a44390f24fa8da2d49383d AS xx +FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx FROM go-${TARGETOS} AS build-base-alpine COPY --from=xx / /