1
0

Dockerfile 803 B

12345678910111213141516171819
  1. FROM centos
  2. ENV PYENV_ROOT /usr/local/pyenv/
  3. ENV PATH /usr/local/pyenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  4. RUN mkdir /usr/local/pyenv && \
  5. yum install -y git openssh-server gcc readline-devel bzip2-devel zlib-devel openssl-devel sqlite-devel make libffi-devel && \
  6. yum clean all && \
  7. git clone git://github.com/yyuu/pyenv.git /usr/local/pyenv && \
  8. git clone git://github.com/yyuu/pyenv-virtualenv.git /usr/local/pyenv/plugins/pyenv-virtualenv && \
  9. ln -vs /usr/local/pyenv/bin/* /usr/local/pyenv/plugins/*/bin/* /usr/local/bin
  10. RUN pyenv install 2.7.15 && \
  11. pyenv install 3.4.9 && \
  12. pyenv install 3.5.6 && \
  13. pyenv install 3.6.7 && \
  14. pyenv install 3.7.1 && \
  15. pyenv global 3.7.1 3.6.7 3.5.6 3.4.9 2.7.15 && \
  16. pip install tox