diff --git a/Dockerfile b/Dockerfile index 144aace..a8b3732 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,14 +13,14 @@ RUN tar -zxvf nginx-*.tar.gz RUN git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex # Build Nginx from source -RUN cd nginx-* +WORKDIR /tmp/nginx-* RUN ./configure --prefix=/usr/local/nginx \ ---sbin-path=/usr/local/sbin/nginx \ ---conf-path=/etc/nginx/nginx.conf \ ---error-log-path=/var/log/nginx/error.log \ ---http-log-path=/var/log/nginx/access.log \ ---with-http_ssl_module \ ---add-module=../ngx-fancyindex + --sbin-path=/usr/local/sbin/nginx \ + --conf-path=/etc/nginx/nginx.conf \ + --error-log-path=/var/log/nginx/error.log \ + --http-log-path=/var/log/nginx/access.log \ + --with-http_ssl_module \ + --add-module=../ngx-fancyindex RUN make RUN make install