diff --git a/loki/Dockerfile b/loki/Dockerfile index adee24a..d2d507c 100644 --- a/loki/Dockerfile +++ b/loki/Dockerfile @@ -50,19 +50,18 @@ RUN set -eux; \ \ echo "Add user for Loki"; \ mkdir -p /data/loki; \ - addgroup -S loki; \ - adduser -h /data/loki -D -S loki -G loki; \ + addgroup -S abc; \ + adduser -u 12345 -h /data/loki -D -S abc -G abc; \ \ - chown -R loki:loki \ + chown -R abc:abc \ /usr/lib/nginx \ /usr/share/nginx \ /var/lib/nginx \ /var/log/nginx \ /data/loki \ - ;\ - chmod -R 777 /data/loki; + ; -COPY --chown=loki:loki rootfs / +COPY --chown=abc:abc rootfs / RUN chmod +x /etc/cont-init.d/nginx.sh;\ chmod +x /etc/services.d/loki/*; \ chmod +x /etc/services.d/nginx/*; diff --git a/loki/rootfs/etc/services.d/loki/run b/loki/rootfs/etc/services.d/loki/run index 411937f..7949afe 100644 --- a/loki/rootfs/etc/services.d/loki/run +++ b/loki/rootfs/etc/services.d/loki/run @@ -47,5 +47,5 @@ if [ "${log_level}" == "debug" ]; then fi bashio::log.info "Handing over control to Loki..." -exec s6-setuidgid loki \ +exec s6-setuidgid abc \ /usr/bin/loki "${loki_args[@]}"