We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9e07fdd + fb4d206 commit beae6e7Copy full SHA for beae6e7
1 file changed
Containerfile
@@ -9,9 +9,12 @@ RUN dnf install -y --setopt=install_weak_deps=False --no-docs \
9
make \
10
util-linux
11
12
+ARG TARGETARCH
13
RUN { \
14
GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text' | sed -ne 's/^go//p'); \
- curl -# -L https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | \
15
+ GO_ARCH=$TARGETARCH; \
16
+ if [[ "$TARGETARCH" == "arm" ]]; then GO_ARCH="arm64"; fi; \
17
+ curl -# -L https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz | \
18
tar -C /usr/local -zx; \
19
}
20
ENV PATH=/usr/local/go/bin:$PATH
0 commit comments