github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/images/runtimes/python3.7.3/Dockerfile (about) 1 FROM ubuntu:bionic 2 RUN apt-get update && apt-get install -y \ 3 curl \ 4 gcc \ 5 libbz2-dev \ 6 libffi-dev \ 7 liblzma-dev \ 8 libreadline-dev \ 9 libssl-dev \ 10 make \ 11 zlib1g-dev 12 13 # Use flags -LJO to follow the html redirect and download .tar.gz. 14 WORKDIR /root 15 ARG VERSION=3.7.3 16 RUN curl -LJO https://github.com/python/cpython/archive/v${VERSION}.tar.gz 17 RUN tar -zxf cpython-${VERSION}.tar.gz 18 19 WORKDIR /root/cpython-${VERSION} 20 RUN ./configure --with-pydebug 21 RUN make -s -j2