From bca82e364dcb5bc7cb0b8754e27ec21492a29849 Mon Sep 17 00:00:00 2001 From: retornam Date: Thu, 5 Jun 2025 20:03:17 -0700 Subject: [PATCH] fix: upgrade tonistiigi/xx to 1.6.1 The version of xx is out-of-date. Upgrading to version 1.6.1 to keep up with changes to the xx project. Signed-off-by: Raymond Etornam --- Dockerfile.multiarch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.multiarch b/Dockerfile.multiarch index 3b9dc458..48787398 100644 --- a/Dockerfile.multiarch +++ b/Dockerfile.multiarch @@ -2,7 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.19 as build-env # xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM # based on TARGETPLATFORM provided by Docker. -COPY --from=tonistiigi/xx:golang-1.0.0 / / +COPY --from=tonistiigi/xx:1.6.1 / / ARG APP_FOLDER @@ -11,7 +11,7 @@ WORKDIR ${APP_FOLDER} # Compile independent executable using go wrapper from xx:golang ARG TARGETPLATFORM -RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner +RUN CGO_ENABLED=0 xx-go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner FROM --platform=$TARGETPLATFORM alpine:3.18