Skip to content

Commit

Permalink
feat(dockerfile): correctly select Go architecture (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink authored Nov 30, 2023
1 parent 3f21d4e commit c7e29a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN apt-get update && apt-get install gcc -y

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

Expand Down

0 comments on commit c7e29a6

Please sign in to comment.