Dockerfile编译安装nginx
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
用户评论
文件写得不错,很有价值。
我少了关闭守护进程, 难怪容器一启动就结束运行了.