-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.x86_64
More file actions
35 lines (33 loc) · 1.3 KB
/
Dockerfile.x86_64
File metadata and controls
35 lines (33 loc) · 1.3 KB
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
27
28
29
30
31
32
33
34
35
FROM ubuntu
ARG PYTHON_VERSION=3.6.0
RUN apt-get update && \
apt-get install -y build-essential \
tk-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline6-dev \
libdb5.3-dev \
libgdbm-dev \
libsqlite3-dev \
libssl-dev \
libbz2-dev \
libexpat1-dev \
liblzma-dev \
wget \
zlib1g-dev &&\
wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz && \
tar xzvf Python-$PYTHON_VERSION.tgz && \
cd Python-$PYTHON_VERSION/ && \
./configure && \
make && \
make install && \
cd .. && \
rm -r Python-$PYTHON_VERSION && \
rm Python-$PYTHON_VERSION.tgz && \
apt-get --purge -y remove build-essential tk-dev && \
apt-get --purge -y remove libncurses5-dev libncursesw5-dev libreadline6-dev && \
apt-get --purge -y remove libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev && \
apt-get --purge -y remove libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev && \
apt-get --purge -y remove wget && \
apt-get autoremove -y && \
apt-get clean -y