File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 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
66FROM centos:7
@@ -32,13 +32,13 @@ RUN yum install -y sqlite-devel
3232RUN 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
4242RUN yum install -y nginx
4343
4444# clean yum cache
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments