Skip to content

Commit

Permalink
refactor go installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mertwole committed Sep 23, 2024
1 parent ef5a6d9 commit 13547a3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install wasm-opt

# Install go
RUN wget -P /tmp "https://go.dev/dl/go1.20.1.linux-amd64.tar.gz"
RUN tar -C /usr/local -xzf "/tmp/go1.20.1.linux-amd64.tar.gz"
RUN rm "/tmp/go1.20.1.linux-amd64.tar.gz"
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
ENV GO_VERSION 1.20.1
RUN wget -P /tmp "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz"
RUN tar -C /usr/local -xzf "/tmp/go${GO_VERSION}.linux-amd64.tar.gz"
RUN rm "/tmp/go${GO_VERSION}.linux-amd64.tar.gz"
ENV PATH /go/bin:/usr/local/go/bin:$PATH

# Install foundry
RUN curl -L https://foundry.paradigm.xyz | bash
Expand Down

0 comments on commit 13547a3

Please sign in to comment.