Debian Codegraph @

templates/tools/dockerfile/compile_python_310.include

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