Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
xianhu committed Aug 21, 2017
1 parent 5f2fc19 commit 750b7f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile → Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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

Expand All @@ -23,6 +23,12 @@ RUN yum install -y gcc
RUN yum install -y make
RUN yum install -y zlib-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

# restart crontab service
Expand All @@ -41,7 +47,7 @@ RUN make clean
RUN make distclean

# install libs of python3
ADD ./Dockerfile_requirements.txt /root/
ADD ./requirements.txt /root/
WORKDIR /root/
RUN pip3 install --upgrade pip
RUN pip3 install -r Dockerfile_requirements.txt
Expand Down
5 changes: 5 additions & 0 deletions Docker/nginx.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
File renamed without changes.

0 comments on commit 750b7f7

Please sign in to comment.