forked from xianhu/PSpider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (30 loc) · 813 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
38
39
# build a docker image for spider or flask
# Dockerfile by xianhu
# usage: docker build -t="user/centos:v01" .
FROM centos:latest
MAINTAINER xianhu <[email protected]>
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN yum update -y
RUN yum install -y vim
RUN yum install -y git
RUN yum install -y wget
RUN yum install -y gcc
RUN yum install -y make
RUN yum install -y zlib-devel
RUN yum install -y openssl-devel
RUN yum clean all
ADD ./Dockerfile_requirements.txt /root/
WORKDIR /root/
RUN wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
RUN tar -xf Python-3.5.2.tar.xz
WORKDIR /root/Python-3.5.2
RUN ./configure
RUN make install
RUN make clean
RUN make distclean
WORKDIR /root/
RUN pip3 install --upgrade pip
RUN pip3 install -r Dockerfile_requirements.txt
RUN rm -rf /root/*
CMD /bin/bash