mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-07-21 10:55:40 +02:00
Merge pull request #209 from Belphemur/copilot/fix-docker-permission-denied-issue
fix(docker): create and chown /config home directory for non-root user
This commit is contained in:
+3
-2
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user