Dockerfile编译安装nginx

一码安天下 50 0 TXT 2019-05-15 16:05:08

Dockerfile编译安装nginxFROMhub.c.163.com/netease_comb/centos:7RUNyuminstall-ygccgcc-c++makeopenssl-develpcre-devel#http://nginx.org/download/nginx-1.12.2.tar.gzADDnginx-1.12.2.tar.gz/tmp/WORKDIR/tmp/nginx-1.12.2RUN./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-pcre--without-http_gzip

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-05-15 16:05:08

文件写得不错,很有价值。

Generic placeholder image 卡了网匿名网友 2019-05-15 16:05:08

我少了关闭守护进程, 难怪容器一启动就结束运行了.