From 463015da452e8f4f5a8464eaac8d9ffe33dae7c0 Mon Sep 17 00:00:00 2001 From: Sedetius Date: Mon, 11 Aug 2025 13:21:06 +0200 Subject: [PATCH] Changed default user name in kiwix-serve Dockerfile to avoid confusion with other kiwix services. --- docker/server/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/server/Dockerfile b/docker/server/Dockerfile index 864c6ec..65501c0 100644 --- a/docker/server/Dockerfile +++ b/docker/server/Dockerfile @@ -12,10 +12,10 @@ WORKDIR /data COPY ./start.sh /usr/local/bin/ # Create non-root user for better security -RUN addgroup -S kiwix && adduser -S kiwix -G kiwix +RUN addgroup -S user && adduser -S user -G user # Change ownership of the start script to the new user -RUN chown kiwix:kiwix /usr/local/bin/start.sh +RUN chown user:user /usr/local/bin/start.sh # Switch to the non-root user -USER kiwix +USER user ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/bin/start.sh"]