File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11ARG FROM=alpine
22FROM $FROM AS cni
3- ARG GOARCH=amd64
3+ # TARGETARCH is automatically set by Docker buildx for multi-platform builds
4+ ARG TARGETARCH
5+ ARG GOARCH=${TARGETARCH:-amd64}
46ARG CNI_PLUGINS_VERSION=v1.1.1
57RUN apk add --no-cache curl && \
68 curl -Lo cni.tar.gz https://github.com/containernetworking/plugins/releases/download/$CNI_PLUGINS_VERSION/cni-plugins-linux-$GOARCH-$CNI_PLUGINS_VERSION.tgz && \
79 tar -xf cni.tar.gz
810
911FROM $FROM
10- ARG GOARCH
12+ ARG TARGETARCH
13+ ARG GOARCH=${TARGETARCH:-amd64}
1114ARG ALPINE_VERSION=v3.20
1215LABEL maintainer="Cozystack <https://github.com/cozystack>"
1316RUN echo -e "https://alpine.global.ssl.fastly.net/alpine/$ALPINE_VERSION/main\n https://alpine.global.ssl.fastly.net/alpine/$ALPINE_VERSION/community" > /etc/apk/repositories && \
You can’t perform that action at this time.
0 commit comments