自动部署静态页面

This commit is contained in:
yangyu 2019-01-03 13:55:37 +08:00
parent 30737f669f
commit aadf5903a5
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ MAINTAINER Yang <yangyufans@qq.com>
ENV NGINX_VERSION=1.15.0
RUN yum install -y wget make gcc pcre-devel gzip zlib zlib-devel
RUN yum install -y wget make gcc pcre-devel gzip zlib zlib-devel git-core
RUN cd / && wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz \
&& tar -zxvf nginx-$NGINX_VERSION.tar.gz \

View File

@ -2,6 +2,10 @@
## 部署
从git上自动拉取静态页面部署
```bash
docker build -t ccr.ccs.tencentyun.com/yy-dk/dynamic:0.0.1 .
```
## 创建容器
```bash
docker run -d \