From ab1e2ff05cd2f707662bd484fcdb313a2f0ac5f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Jul 2026 15:15:49 +0000 Subject: [PATCH] fix(docker): create and chown /config home directory for non-root user Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com> --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0d2d46..0f7520e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,6 @@ ENV VENDOR_PATH=/usr/bin RUN adduser \ -S \ -D \ - -H \ -h "${CONFIG_FOLDER}" \ -u "${PUID}" \ -G users \ @@ -27,7 +26,9 @@ RUN apk add --no-cache \ bash-completion \ libwebp-tools && \ chmod +x ${APP_PATH} && \ - ${APP_PATH} completion bash > /etc/bash_completion.d/CBZOptimizer.bash + ${APP_PATH} completion bash > /etc/bash_completion.d/CBZOptimizer.bash && \ + mkdir -p "${CONFIG_FOLDER}" && \ + chown -R "${PUID}":users "${CONFIG_FOLDER}" USER ${USER}