We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f21d4e commit c7e29a6Copy full SHA for c7e29a6
Dockerfile
@@ -5,7 +5,8 @@ RUN apt-get update && apt-get install gcc -y
5
6
# install Golang
7
ENV GOPATH=/go
8
-RUN wget -qO- https://golang.org/dl/go1.15.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
+ARG TARGETPLATFORM
9
+RUN wget -qO- "https://golang.org/dl/go1.15.2.linux-${TARGETPLATFORM##*/}.tar.gz" | tar -C /usr/local -xzf -
10
ENV PATH="${PATH}:/usr/local/go/bin"
11
ENV GO111MODULE=on
12
0 commit comments