18,772
社区成员
发帖
与我相关
我的任务
分享
FROM hub.c.163.com/netease_comb/centos:7
RUN yum install -y epel-release && yum update -y && yum install -y gcc pcre pcre-devel zlib zlib-deve
ADD nginx-1.12.2.tar.gz /tmp/
WORKDIR /tmp/nginx-1.12.2
RUN ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-pcre --without-http_gzip_module && make && make install
RUN ln -s /usr/local/nginx/sbin/nginx /usr/bin/
COPY nginx.conf /usr/local/nginx/conf/
COPY vhosts.conf /usr/local/nginx/conf/
EXPOSE 80 443
ENTRYPOINT ["nginx"]
CMD ["-h"]