File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Dockerfile by xianhu: build a docker image for spider or flask
2
- # usage: docker build -t user/centos:v08 .
2
+ # usage: docker build -t user/centos:v09 .
3
3
4
4
FROM centos:6.8
5
5
@@ -23,6 +23,12 @@ RUN yum install -y gcc
23
23
RUN yum install -y make
24
24
RUN yum install -y zlib-devel
25
25
RUN yum install -y openssl-devel
26
+
27
+ # install nginx
28
+ ADD ./nginx.repo /etc/yum.repos.d/
29
+ RUN yum install -y nginx
30
+
31
+ # clean yum cache
26
32
RUN yum clean all
27
33
28
34
# restart crontab service
@@ -41,7 +47,7 @@ RUN make clean
41
47
RUN make distclean
42
48
43
49
# install libs of python3
44
- ADD ./Dockerfile_requirements .txt /root/
50
+ ADD ./requirements .txt /root/
45
51
WORKDIR /root/
46
52
RUN pip3 install --upgrade pip
47
53
RUN pip3 install -r Dockerfile_requirements.txt
Original file line number Diff line number Diff line change
1
+ [nginx]
2
+ name=nginx repo
3
+ baseurl=http://nginx.org/packages/centos/6/$basearch/
4
+ gpgcheck=0
5
+ enabled=1
File renamed without changes.
You can’t perform that action at this time.
0 commit comments