1# Install dependencies for pyenv 2RUN apt-get update && apt-get install -y ${'\\'} 3 libbz2-dev ${'\\'} 4 libncurses5-dev ${'\\'} 5 libncursesw5-dev ${'\\'} 6 libreadline-dev ${'\\'} 7 libsqlite3-dev ${'\\'} 8 libssl-dev ${'\\'} 9 llvm ${'\\'} 10 mercurial ${'\\'} 11 zlib1g-dev && apt-get clean 12 13# Install Pyenv and dev Python versions 3.{5,6,7} 14RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash 15ENV PATH /root/.pyenv/bin:$PATH 16RUN eval "$(pyenv init -)" 17RUN eval "$(pyenv virtualenv-init -)" 18RUN pyenv update 19RUN pyenv install 3.5-dev 20RUN pyenv install 3.6-dev 21RUN pyenv install 3.7-dev 22RUN pyenv install pypy-5.3.1 23RUN pyenv local 3.5-dev 3.6-dev 3.7-dev pypy-5.3.1 24