github.com/klaytn/klaytn@v1.12.1/build/Dockerfile-go1.20.6-solc0.8.13-ubuntu (about)

     1  FROM ubuntu:20.04 as solc_0.8.13_builder
     2  ENV DEBIAN_FRONTEND=noninteractive
     3  ENV TZ=Asia/Seoul
     4  RUN apt update
     5  RUN apt install -yq tzdata && \
     6      ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
     7      dpkg-reconfigure -f noninteractive tzdata
     8  RUN apt install -y git lsb-core sudo libboost-all-dev build-essential cmake z3
     9  RUN git clone --depth 1 --recursive -b v0.8.13 https://github.com/ethereum/solidity
    10  RUN cd /solidity && cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=0 -DSTATIC_LINKING=1
    11  RUN cd /solidity && touch prerelease.txt
    12  RUN cd /solidity && make solc
    13  RUN cd /solidity && install -s solc/solc /usr/bin
    14  
    15  FROM ubuntu:20.04 as go_builder
    16  RUN apt update && apt install -y software-properties-common
    17  RUN add-apt-repository ppa:longsleep/golang-backports -y && \
    18      apt install -yq tzdata && \
    19      ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
    20      dpkg-reconfigure -f noninteractive tzdata
    21  RUN apt install -y build-essential bash gcc musl-dev openssl wget golang golang-1.17
    22  RUN wget -O go.src.tar.gz https://dl.google.com/go/go1.20.6.src.tar.gz
    23  RUN tar -C /usr/local -xzf go.src.tar.gz
    24  RUN cd /usr/local/go/src/ && \
    25      ./make.bash
    26  
    27  FROM ubuntu:20.04
    28  RUN apt update
    29  RUN apt install -yq tzdata && \
    30      ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
    31      dpkg-reconfigure -f noninteractive tzdata
    32  RUN apt install -y ca-certificates libboost-all-dev git make gcc libc-dev curl bash python3 python3-dev python3-pip unzip
    33  RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm awscliv2.zip
    34  COPY --from=solc_0.8.13_builder /usr/bin/solc /usr/bin/solc
    35  COPY --from=go_builder /usr/local/go /usr/local
    36  
    37  ENV GOPATH /go
    38  ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
    39  RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
    40  RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.0