update docker
parent
5f2fc192c5
commit
750b7f79e4
|
@ -1,5 +1,5 @@
|
||||||
# Dockerfile by xianhu: build a docker image for spider or flask
|
# Dockerfile by xianhu: build a docker image for spider or flask
|
||||||
# usage: docker build -t user/centos:v08 .
|
# usage: docker build -t user/centos:v09 .
|
||||||
|
|
||||||
FROM centos:6.8
|
FROM centos:6.8
|
||||||
|
|
||||||
|
@ -23,6 +23,12 @@ RUN yum install -y gcc
|
||||||
RUN yum install -y make
|
RUN yum install -y make
|
||||||
RUN yum install -y zlib-devel
|
RUN yum install -y zlib-devel
|
||||||
RUN yum install -y openssl-devel
|
RUN yum install -y openssl-devel
|
||||||
|
|
||||||
|
# install nginx
|
||||||
|
ADD ./nginx.repo /etc/yum.repos.d/
|
||||||
|
RUN yum install -y nginx
|
||||||
|
|
||||||
|
# clean yum cache
|
||||||
RUN yum clean all
|
RUN yum clean all
|
||||||
|
|
||||||
# restart crontab service
|
# restart crontab service
|
||||||
|
@ -41,7 +47,7 @@ RUN make clean
|
||||||
RUN make distclean
|
RUN make distclean
|
||||||
|
|
||||||
# install libs of python3
|
# install libs of python3
|
||||||
ADD ./Dockerfile_requirements.txt /root/
|
ADD ./requirements.txt /root/
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
RUN pip3 install --upgrade pip
|
RUN pip3 install --upgrade pip
|
||||||
RUN pip3 install -r Dockerfile_requirements.txt
|
RUN pip3 install -r Dockerfile_requirements.txt
|
|
@ -0,0 +1,5 @@
|
||||||
|
[nginx]
|
||||||
|
name=nginx repo
|
||||||
|
baseurl=http://nginx.org/packages/centos/6/$basearch/
|
||||||
|
gpgcheck=0
|
||||||
|
enabled=1
|
Loading…
Reference in New Issue