Skip to content

Instantly share code, notes, and snippets.

@tigrus
Last active April 7, 2019 13:05
Show Gist options
  • Save tigrus/b3c0936d420bb271f7e14645f0c53e57 to your computer and use it in GitHub Desktop.
Save tigrus/b3c0936d420bb271f7e14645f0c53e57 to your computer and use it in GitHub Desktop.
Build pypy docker from python official docker image
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