标签:install src add bin main doc useradd app figure
【dockerfile】
#FROM
FROM docker.io/centos
#MAINTAINER
MAINTAINER chenlulu@kuaiyonggong.com
#ADD
ADD nginx-1.10.3.tar.gz /usr/local/src
ADD pcre-8.00.tar.gz /usr/local/src
RUN yum install -y wget openssl-devel make gcc gcc-c++
RUN useradd -s /sbin/nologin -M nginx
WORKDIR /usr/local/src/nginx-1.10.3
RUN mkdir /application
RUN ./configure --prefix=/application/nginx --user=nginx --with-http_stub_status_module --with-http_ssl_module && make && make install
RUN echo "daemon off;" >>/application/nginx/conf/nginx.conf
ENV PATH /application/nginx/sbin:$PATH
CMD "/application/nginx/sbin/nginx"
Dockerfile 构建 nginx 镜像
标签:install src add bin main doc useradd app figure
原文地址:http://www.cnblogs.com/cll450/p/7735581.html