FROM centos:7 ENV HOME /root ENV PATH $HOME/.pyenv/bin:$HOME/.pyenv/shims:$HOME/.cargo/bin:$HOME/.local/bin:$PATH RUN yum update -y && yum install -y git gcc make zlib-devel && \ curl https://pyenv.run | bash # pyenv prequisits. see https://github.com/pyenv/pyenv/wiki/common-build-problems RUN yum install @development zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils -y RUN pyenv install 3.8.2 && \ pyenv install 3.7.6 && \ pyenv install 3.6.10 && \ pyenv install 3.5.4 && \ pyenv global 3.8.2 3.7.6 3.6.10 3.5.4