github.com/klaytn/klaytn@v1.12.1/build/Dockerfile-go1.14.1-solc0.4.24-alpine-1.1 (about)

     1  FROM alpine:3.8 as solc_builder
     2  RUN \
     3    apk --no-cache --update add build-base cmake boost-dev git; \
     4    sed -i -E -e 's/include <sys\/poll.h>/include <poll.h>/' /usr/include/boost/asio/detail/socket_types.hpp; \
     5    git clone --depth 1 --recursive -b v0.4.24 https://github.com/ethereum/solidity; \
     6    cd /solidity && cmake -DCMAKE_BUILD_TYPE=Release -DTESTS=0 -DSTATIC_LINKING=1 && \
     7    touch prerelease.txt && make -j8 solc && install -s solc/solc /usr/bin; \
     8    cd / && rm -rf solidity; \
     9    apk del sed build-base git make cmake gcc g++ musl-dev curl-dev boost-dev; \
    10    rm -rf /var/cache/apk/*
    11  
    12  FROM alpine:3.8 as go_builder
    13  RUN \
    14    apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl go; \
    15    wget -O go.src.tar.gz https://dl.google.com/go/go1.14.1.src.tar.gz; \
    16    tar -C /usr/local -xzf go.src.tar.gz; \
    17    cd /usr/local/go/src/ && ./make.bash; \
    18    apk del .build-deps
    19  
    20  FROM alpine:3.8
    21  RUN apk add --no-cache ca-certificates boost git make gcc libc-dev curl bash python python-dev py-pip
    22  RUN pip install awscli-local
    23  COPY --from=solc_builder /usr/bin/solc /usr/bin/solc
    24  COPY --from=go_builder /usr/local/go /usr/local
    25  
    26  ENV GOPATH /go
    27  ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
    28  RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
    29  RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0