FROM centos
ADD Python-3.8.0.tgz /opt/tmp
RUN rm -rf Python-3.8.0.tgz && yum install epel-release -y && yum install gcc make zlib-devel libffi-devel openssl openssl-devel -y \
        && cd /opt/tmp/Python-3.8.0 \
        && ./configure --prefix=/opt/python3 \
        && make \
        && make install \
        && echo 'export PATH=/opt/python3/bin:$PATH' >> /etc/profile

