CentOS7.4.GCC.4.9.0 Image
FROM scratch
ADD centos-7.4.1708-docker.tar.xz /
ADD cmake-3.10.0-Linux-x86_64.tar.gz /usr/local/bin/
RUN yum clean all \
&& yum install make gcc gcc-c++ -y \
&& yum clean all \
&& cd /opt/gcc-4.9.0 \
&& contrib/download_prerequisites \
&& mkdir build \
&& cd build \
&& ../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib \
&& make -j8 \
&& make install \
&& \cp /usr/local/lib64/libstd* /usr/lib64/ \
&& rm -fr /opt/gcc-4.9.0 \
&& rm -f /usr/lib64/libstdc++.so.6 \
&& ln -s /usr/lib64/libstdc++.so.6.0.20 /usr/lib64/libstdc++.so.6
#
ENV PATH=$PATH:/usr/local/bin/cmake-3.10.0-Linux-x86_64/bin/
#
LABEL name="CentOS7.4.GCC.4.9.0 Image" \
vendor="CentOS" \
license="GPLv2" \
build-date="20181012"
CMD ["/bin/bash"]