From 9d2cb75c84cd08e5b723dd414919ac38c1a7b417 Mon Sep 17 00:00:00 2001 From: lanvent Date: Wed, 10 May 2023 23:11:18 +0800 Subject: [PATCH] fix(docker): chown /usr/local/lib in debian dockerfile --- docker/Dockerfile.debian | 2 +- docker/Dockerfile.latest | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.debian b/docker/Dockerfile.debian index 7f6e164..302fc4f 100644 --- a/docker/Dockerfile.debian +++ b/docker/Dockerfile.debian @@ -34,7 +34,7 @@ RUN chmod +x /entrypoint.sh \ && mkdir -p /home/noroot \ && groupadd -r noroot \ && useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \ - && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} + && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib USER noroot diff --git a/docker/Dockerfile.latest b/docker/Dockerfile.latest index a9833ed..d0a2475 100644 --- a/docker/Dockerfile.latest +++ b/docker/Dockerfile.latest @@ -28,8 +28,8 @@ RUN chmod +x /entrypoint.sh \ && mkdir -p /home/noroot \ && groupadd -r noroot \ && useradd -r -g noroot -s /bin/bash -d /home/noroot noroot \ - && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} + && chown -R noroot:noroot /home/noroot ${BUILD_PREFIX} /usr/local/lib USER noroot -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file