Skip to content

Commit bca82e3

Browse files
committed
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>
1 parent 66893eb commit bca82e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile.multiarch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.19 as build-env
22

33
# xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM
44
# based on TARGETPLATFORM provided by Docker.
5-
COPY --from=tonistiigi/xx:golang-1.0.0 / /
5+
COPY --from=tonistiigi/xx:1.6.1 / /
66

77
ARG APP_FOLDER
88

@@ -11,7 +11,7 @@ WORKDIR ${APP_FOLDER}
1111

1212
# Compile independent executable using go wrapper from xx:golang
1313
ARG TARGETPLATFORM
14-
RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner
14+
RUN CGO_ENABLED=0 xx-go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner
1515

1616
FROM --platform=$TARGETPLATFORM alpine:3.18
1717

0 commit comments

Comments
 (0)