aboutsummaryrefslogtreecommitdiff
path: root/templates/tools/dockerfile/compile_python_311.include
blob: 36286e462236293d0a6c33c87bbae5a7331f0040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#=================
# Compile CPython 3.11.4 from source

RUN apt-get update && apt-get install -y zlib1g-dev libssl-dev libsqlite3-dev && apt-get clean
RUN apt-get update && apt-get install -y jq build-essential libffi-dev && apt-get clean

RUN cd /tmp && ${'\\'}
    wget -q https://www.python.org/ftp/python/3.11.4/Python-3.11.4.tgz && ${'\\'}
    tar xzvf Python-3.11.4.tgz && ${'\\'}
    cd Python-3.11.4 && ${'\\'}
    ./configure && ${'\\'}
    make -j4 && ${'\\'}
    make install


RUN cd /tmp && ${'\\'}
    echo "bf6ec50f2f3bfa6ffbdb385286f2c628  Python-3.11.4.tgz" > checksum.md5 && ${'\\'}
    md5sum -c checksum.md5

RUN python3.11 -m ensurepip && ${'\\'}
    python3.11 -m pip install coverage