mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-07-21 10:55:40 +02:00
fix(docker): create and chown /config home directory for non-root user
Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com>
This commit is contained in:
co-authored by
Belphemur
parent
eca9671881
commit
ab1e2ff05c
+3
-2
@@ -12,7 +12,6 @@ ENV VENDOR_PATH=/usr/bin
|
|||||||
RUN adduser \
|
RUN adduser \
|
||||||
-S \
|
-S \
|
||||||
-D \
|
-D \
|
||||||
-H \
|
|
||||||
-h "${CONFIG_FOLDER}" \
|
-h "${CONFIG_FOLDER}" \
|
||||||
-u "${PUID}" \
|
-u "${PUID}" \
|
||||||
-G users \
|
-G users \
|
||||||
@@ -27,7 +26,9 @@ RUN apk add --no-cache \
|
|||||||
bash-completion \
|
bash-completion \
|
||||||
libwebp-tools && \
|
libwebp-tools && \
|
||||||
chmod +x ${APP_PATH} && \
|
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}
|
USER ${USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user