compile_python_310.include 691 B

1234567891011121314151617181920
  1. #=================
  2. # Compile CPython 3.10.2 from source
  3. RUN apt-get update && apt-get install -y zlib1g-dev libssl-dev && apt-get clean
  4. RUN apt-get update && apt-get install -y jq build-essential libffi-dev && apt-get clean
  5. RUN cd /tmp && ${'\\'}
  6. wget -q https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgz && ${'\\'}
  7. tar xzvf Python-3.10.2.tgz && ${'\\'}
  8. cd Python-3.10.2 && ${'\\'}
  9. ./configure && ${'\\'}
  10. make -j4 && ${'\\'}
  11. make install
  12. RUN cd /tmp && ${'\\'}
  13. echo "67c92270be6701f4a6fed57c4530139b Python-3.10.2.tgz" > checksum.md5 && ${'\\'}
  14. md5sum -c checksum.md5
  15. RUN python3.10 -m ensurepip && ${'\\'}
  16. python3.10 -m pip install coverage