compile_python_36.include 683 B

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