github.com/klaytn/klaytn@v1.12.1/build/Dockerfile-go1.13.3-rpmbuild (about)

     1  FROM alpine:3.8 as go_builder
     2  RUN \
     3    apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl go; \
     4    wget -O go.src.tar.gz https://dl.google.com/go/go1.13.3.src.tar.gz; \
     5    tar -C /usr/local -xzf go.src.tar.gz; \
     6    cd /usr/local/go/src/ && ./make.bash; \
     7    apk del .build-deps
     8  
     9  FROM centos:centos7
    10  
    11  COPY --from=go_builder /usr/local/go /usr/local
    12  RUN yum install -y make rpm-build git
    13  RUN mkdir -p /rpmbuild/{SOURCES,SPECS,BUILD,RPMS,SRPMS}
    14  RUN echo "%_topdir /rpmbuild" > ~/.rpmmacros
    15  
    16  CMD ["/bin/sh"]