• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#=================
2# Compile CPython 3.11.4 from source
3
4RUN apt-get update && apt-get install -y zlib1g-dev libssl-dev libsqlite3-dev && apt-get clean
5RUN apt-get update && apt-get install -y jq build-essential libffi-dev && apt-get clean
6
7RUN cd /tmp && ${'\\'}
8    wget -q https://www.python.org/ftp/python/3.11.4/Python-3.11.4.tgz && ${'\\'}
9    tar xzvf Python-3.11.4.tgz && ${'\\'}
10    cd Python-3.11.4 && ${'\\'}
11    ./configure && ${'\\'}
12    make -j4 && ${'\\'}
13    make install
14
15
16RUN cd /tmp && ${'\\'}
17    echo "bf6ec50f2f3bfa6ffbdb385286f2c628  Python-3.11.4.tgz" > checksum.md5 && ${'\\'}
18    md5sum -c checksum.md5
19
20RUN python3.11 -m ensurepip && ${'\\'}
21    python3.11 -m pip install coverage
22