Last active
April 7, 2019 13:05
-
-
Save tigrus/b3c0936d420bb271f7e14645f0c53e57 to your computer and use it in GitHub Desktop.
Build pypy docker from python official docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6.8 | |
WORKDIR /opt | |
RUN wget https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.1.0-linux64.tar.bz2 | |
RUN tar -xvf pypy3.6-v7.1.0-linux64.tar.bz2 | |
RUN ln -s /opt/pypy3.6-v7.1.0-linux64/bin/pypy3 /usr/bin/pypy | |
# Smoke test | |
RUN pypy -c "print(2)" | |
ENV PYTHON_PIP_VERSION 19.0.3 | |
RUN rm -rf /usr/local/bin/pi* | |
RUN pypy -m ensurepip | |
RUN ln -s /opt/pypy3.6-v7.1.0-linux64/bin/pip3 /usr/bin/pip | |
WORKDIR /opt/pypy3.6-v7.1.0-linux64/lib_pypy/ | |
RUN pypy _ssl_build.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment