Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

变量

ARG NGINX_VERSION=1.15.0

Ngnix

WORKDIR /tem

RUN wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz &&
tar xzf nginx-${NGINX_VERSION}.tar.gz &&
cd /tmp/nginx-${NGINX_VERSION} $$
./configure
--prefix=/usr/local/nginx
--with-http_ssl_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_gzip_static_module
--with-http_stub_status_module
--with-debug &&
make &&
make install

# 设置环境变量
ENV PATH /usr/local/nginx/sbin:$PATH