-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (26 loc) · 867 Bytes
/
Dockerfile
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
36
37
FROM centos
MAINTAINER <[email protected]>
RUN yum -y groupinstall 'Development Tools'
RUN yum -y install epel-release && \
yum -y install gcc && \
yum -y install zlib-devel && \
yum -y install bzip2-devel && \
yum -y install openssl-devel && \
yum -y install ncurses-devel && \
yum -y install wget && \
yum -y install zlib* && \
yum -y install sqlite-devel
ADD sqlite-autoconf-3230100.tar.gz /
RUN cd sqlite-autoconf-3230100 && \
./configure && \
make && \
make install
ADD Python-3.6.5.tgz /
RUN mkdir -p /usr/local/python3
RUN cd /Python-3.6.5/ && \
./configure --prefix=/usr/local/python3 --enable-optimizations && \
make && \
make install
RUN ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3 && \
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
RUN pip3 install --upgrade pip