blob: 4d1e1e2210f567bbde214cf2246986f9ba47898b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
FROM ubuntu:bionic
RUN apt-get update && apt-get install -y \
curl \
gcc \
libbz2-dev \
libffi-dev \
liblzma-dev \
libreadline-dev \
libssl-dev \
make \
zlib1g-dev
# Use flags -LJO to follow the html redirect and download .tar.gz.
WORKDIR /root
ARG VERSION=3.7.3
RUN curl -LJO https://github.com/python/cpython/archive/v${VERSION}.tar.gz
RUN tar -zxf cpython-${VERSION}.tar.gz
WORKDIR /root/cpython-${VERSION}
RUN ./configure --with-pydebug
RUN make -s -j2
|