Compare commits

...

5 Commits

Author SHA1 Message Date
08f738e555 aAAAAAAAAAAA
All checks were successful
Publish Docker Image / docker (push) Successful in 1m7s
2023-10-26 12:21:36 +01:00
949798a17f 7
Some checks failed
Publish Docker Image / docker (push) Failing after 29s
2023-10-26 12:19:30 +01:00
49273340e3 7
Some checks failed
Publish Docker Image / docker (push) Failing after 21s
2023-10-26 12:17:26 +01:00
29ba4a5927 pls work
All checks were successful
Publish Docker Image / docker (push) Successful in 1m7s
2023-10-26 12:15:18 +01:00
f7fd878df8 stuffings
All checks were successful
Publish Docker Image / docker (push) Successful in 1m12s
2023-10-26 12:10:13 +01:00

@ -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 \
@ -26,6 +24,21 @@ RUN cd nginx-* && ./configure --prefix=/usr/local/nginx \
# Stage 2: Create a minimal runtime image
FROM alpine:latest
# Install runtime dependencies
RUN apk update && apk upgrade
RUN apk add pcre pcre-dev
RUN mkdir /usr/local/nginx
RUN mkdir /usr/local/nginx/logs
RUN mkdir /var/log/nginx
RUN touch /usr/local/nginx/logs/error.log
RUN touch /usr/local/nginx/logs/access.log
RUN chmod -R 770 /usr/local/nginx
RUN 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