This commit is contained in:
parent
f7fd878df8
commit
29ba4a5927
@ -16,8 +16,6 @@ RUN git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex
|
||||
RUN cd nginx-* && ./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 \
|
||||
&& make \
|
||||
@ -30,6 +28,9 @@ FROM alpine:latest
|
||||
RUN apk update && apk upgrade
|
||||
RUN apk add pcre pcre-dev
|
||||
|
||||
RUN mkdir /usr/local/nginx && chmod -R 770 /usr/local/nginx
|
||||
RUN mkdir /var/log/nginx && chmod -R 770 /var/log/nginx
|
||||
|
||||
# Copy Nginx binary and configuration from the build stage
|
||||
COPY --from=build /usr/local/sbin/nginx /usr/local/sbin/nginx
|
||||
COPY --from=build /etc/nginx /etc/nginx
|
||||
|
Loading…
x
Reference in New Issue
Block a user