Skip to content

Commit 2280e78

Browse files
committed
更改nginx的安装方式
1 parent cde2d34 commit 2280e78

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

Docker/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dockerfile by xianhu: build a docker image
22
# usage: docker build -t user/centos .
3-
# usage: docker run -d --privileged user/centos
3+
# usage: docker run -dt --privileged user/centos
44
# usage: docker exec -it containerid /bin/bash
55

66
FROM centos:7
@@ -32,13 +32,13 @@ RUN yum install -y sqlite-devel
3232
RUN yum install -y openssl-devel
3333

3434
# install python
35-
RUN yum -y install https://centos7.iuscommunity.org/ius-release.rpm
36-
RUN yum -y install python36u
37-
RUN yum -y install python36u-pip
38-
RUN yum -y install python36u-devel
35+
RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm
36+
RUN yum install -y python36u
37+
RUN yum install -y python36u-pip
38+
RUN yum install -y python36u-devel
3939

4040
# install nginx
41-
ADD ./nginx.repo /etc/yum.repos.d/
41+
RUN yum install -y epel-release
4242
RUN yum install -y nginx
4343

4444
# clean yum cache

Docker/nginx.repo

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)