This commit is contained in:
ai-dev 2024-11-09 07:04:55 +01:00
parent e43f7a6c33
commit 2dc2629677

View File

@ -35,7 +35,7 @@ RUN set -eux; \
nginx \ nginx \
; \ ; \
update-ca-certificates; \ update-ca-certificates; \
nginx -v; \ nginx -V; \
rm -f -r /etc/nginx; \ rm -f -r /etc/nginx; \
mkdir -p \ mkdir -p \
/var/lib/nginx/tmp/client_body \ /var/lib/nginx/tmp/client_body \
@ -58,15 +58,16 @@ RUN set -eux; \
/usr/share/nginx \ /usr/share/nginx \
/var/lib/nginx \ /var/lib/nginx \
/var/log/nginx \ /var/log/nginx \
; \ ;
chmod +x /etc/cont-init.d/nginx.sh;\ COPY --chown=loki:loki rootfs /
RUN chmod +x /etc/cont-init.d/nginx.sh;\
chmod +x /etc/services.d/loki/*; \ chmod +x /etc/services.d/loki/*; \
chmod +x /etc/services.d/nginx/*; chmod +x /etc/services.d/nginx/*;
# See https://github.com/grafana/loki/issues/1928 # See https://github.com/grafana/loki/issues/1928
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
COPY --chown=loki:loki rootfs /
WORKDIR /data/loki WORKDIR /data/loki
# Build arguments # Build arguments