|
| 1 | +FROM debian:9 |
| 2 | +# This docker image has a copy of a wide array of Pythons installed |
| 3 | +RUN apt-get update |
| 4 | +RUN apt-get install --yes --no-install-recommends make build-essential zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libffi-dev liblzma-dev libssl1.0-dev |
| 5 | +RUN apt-get install --yes git vim |
| 6 | +RUN apt-get install --yes python3-pip |
| 7 | +ENV PYENV_ROOT=/opt/pyenv |
| 8 | +RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash |
| 9 | +RUN echo export PATH="/opt/pyenv/bin:$PATH" >> ~/.bashrc |
| 10 | +RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc |
| 11 | +RUN echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc |
| 12 | +# venv 15.2.0 is the last to support Python 2.6. Since the venv module of the installer |
| 13 | +RUN pip3 install virtualenv==15.2.0 |
| 14 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 2.6.9 |
| 15 | +RUN virtualenv /opt/py26 --python /opt/pyenv/versions/2.6.9/bin/python |
| 16 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.3.7 |
| 17 | +RUN virtualenv /root/py33 --python /opt/pyenv/versions/3.3.7/bin/python |
| 18 | +RUN pip3 install virtualenv==20.0.21 |
| 19 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.4.10 |
| 20 | +RUN virtualenv /root/py34 --python /opt/pyenv/versions/3.4.10/bin/python |
| 21 | +RUN apt-get install --yes libssl-dev libxmlsec1-dev |
| 22 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 2.7.18 |
| 23 | +RUN virtualenv /root/py27 --python /opt/pyenv/versions/2.7.18/bin/python |
| 24 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.5.9 |
| 25 | +RUN virtualenv /root/py35 --python /opt/pyenv/versions/3.5.9/bin/python |
| 26 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.6.10 |
| 27 | +RUN virtualenv /root/py36 --python /opt/pyenv/versions/3.6.10/bin/python |
| 28 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.7.7 |
| 29 | +RUN virtualenv /root/py37 --python /opt/pyenv/versions/3.7.7/bin/python |
| 30 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.8.3 |
| 31 | +RUN virtualenv /root/py38 --python /opt/pyenv/versions/3.8.3/bin/python |
| 32 | +RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.9.0a6 |
| 33 | +RUN virtualenv /root/py39 --python /opt/pyenv/versions/3.9.0a6/bin/python |
| 34 | +RUN ln -s /usr/bin/python3 /usr/bin/python |
| 35 | +ENV LC_ALL=C.UTF-8 |
| 36 | +ENV LANG=C.UTF-8 |
| 37 | +WORKDIR /root/python-future |
| 38 | +ADD . /root/python-future |
0 commit comments