This commit is contained in:
parent
5eb05fcdc4
commit
bb1a051aaa
@ -13,8 +13,7 @@ RUN tar -zxvf nginx-*.tar.gz
|
|||||||
RUN git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex
|
RUN git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex
|
||||||
|
|
||||||
# Build Nginx from source
|
# Build Nginx from source
|
||||||
WORKDIR /tmp/nginx-*
|
RUN cd nginx-* && ./configure --prefix=/usr/local/nginx \
|
||||||
RUN ./configure --prefix=/usr/local/nginx \
|
|
||||||
--sbin-path=/usr/local/sbin/nginx \
|
--sbin-path=/usr/local/sbin/nginx \
|
||||||
--conf-path=/etc/nginx/nginx.conf \
|
--conf-path=/etc/nginx/nginx.conf \
|
||||||
--error-log-path=/var/log/nginx/error.log \
|
--error-log-path=/var/log/nginx/error.log \
|
||||||
@ -39,4 +38,4 @@ COPY ./nginx.conf /etc/nginx/nginx.conf
|
|||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
# Start Nginx when the container runs
|
# Start Nginx when the container runs
|
||||||
CMD ["/usr/local/sbin/nginx", "-g", "daemon off;"]
|
CMD ["/usr/local/sbin/nginx", "-g", "daemon off;"]
|
||||||
|
Loading…
Reference in New Issue
Block a user