compile_python_37.include 689 B

1234567891011121314151617181920
  1. #=================
  2. # Compile CPython 3.7.12 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.7.12/Python-3.7.12.tgz && ${'\\'}
  7. tar xzvf Python-3.7.12.tgz && ${'\\'}
  8. cd Python-3.7.12 && ${'\\'}
  9. ./configure && ${'\\'}
  10. make -j4 && ${'\\'}
  11. make install
  12. RUN cd /tmp && ${'\\'}
  13. echo "6fe83678c085a7735a943cf1e4d41c14 Python-3.7.12.tgz" > checksum.md5 && ${'\\'}
  14. md5sum -c checksum.md5
  15. RUN python3.7 -m ensurepip && ${'\\'}
  16. python3.7 -m pip install coverage