-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.ubuntu1604
More file actions
26 lines (20 loc) · 879 Bytes
/
Copy pathDockerfile.ubuntu1604
File metadata and controls
26 lines (20 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu:16.04
WORKDIR /tmp
RUN apt update && apt -y install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget
RUN wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
RUN wget https://www.python.org/ftp/python/3.12.8/Python-3.12.8.tgz
RUN tar -xzvf Python-3.12.8.tgz
RUN apt -y remove openssl
RUN tar -zxf openssl-1.1.1g.tar.gz
RUN tar -xzvf Python-3.12.8.tgz
WORKDIR /tmp/openssl-1.1.1g
RUN ./config
RUN make
RUN make install
RUN cp -r libssl.so.1.1 /usr/lib && cp -r libcrypto.so.1.1 /usr/lib
WORKDIR /tmp/Python-3.12.8
RUN ./configure --enable-optimizations --with-openssl=/usr/local --with-ensurepip=install CFLAGS="-I/usr/include" LDFLAGS="-Wl,-rpath /usr/local/lib" --enable-shared --prefix=/usr/local
RUN make
RUN make install
RUN python3 -m pip install pyinstaller
WORKDIR /root