Skip to content

Commit

Permalink
feat(dockerfile): use TARGETARCH instead of TARGETPLATFORM (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink authored Nov 30, 2023
1 parent c7e29a6 commit fe9834a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN apt-get update && apt-get install gcc -y

# install Golang
ENV GOPATH=/go
ARG TARGETPLATFORM
RUN wget -qO- "https://golang.org/dl/go1.15.2.linux-${TARGETPLATFORM##*/}.tar.gz" | tar -C /usr/local -xzf -
ARG TARGETARCH
RUN wget -qO- "https://golang.org/dl/go1.15.2.linux-${TARGETARCH}.tar.gz" | tar -C /usr/local -xzf -
ENV PATH="${PATH}:/usr/local/go/bin"
ENV GO111MODULE=on

Expand Down

0 comments on commit fe9834a

Please sign in to comment.