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 <retornam@users.noreply.github.com>
This commit is contained in:
retornam 2025-06-05 20:03:17 -07:00
parent 66893eb9e7
commit bca82e364d
1 changed files with 2 additions and 2 deletions

View File

@ -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