github.com/klaytn/klaytn@v1.12.1/build/Dockerfile-go1.20.6-rpmbuild-gcc7 (about) 1 FROM centos:centos7 2 3 RUN curl https://dl.google.com/go/go1.20.6.linux-amd64.tar.gz | tar xzvf - -C /usr/local 4 RUN yum install -y make rpm-build git createrepo python3 gcc unzip 5 RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm awscliv2.zip 6 ENV PATH=$PATH:/usr/local/go/bin 7 8 # yum installed gcc is too old (4.8.5). Install 7.x to enable c99 (actually gnu11) by default. 9 # devtoolset-7 must be installed after centos-release-scl 10 RUN yum install -y centos-release-scl scl-utils && yum install -y devtoolset-7-gcc 11 12 # Add gcc 7.x in $PATH 13 ENV PATH="/opt/rh/devtoolset-7/root/usr/bin:$PATH" 14 ENV LD_LIBRARY_PATH="/opt/rh/devtoolset-7/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" 15 16 CMD ["/bin/sh"]