From 0dd05b926958932aa2771476588f1259a04e02e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Wed, 2 Oct 2024 21:47:32 +0200 Subject: [PATCH] Fix permission issue with ublock extension --- docker/alpine.Dockerfile | 6 ++++-- docker/default.Dockerfile | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docker/alpine.Dockerfile b/docker/alpine.Dockerfile index 74e2aa8..4f7bb3e 100644 --- a/docker/alpine.Dockerfile +++ b/docker/alpine.Dockerfile @@ -111,7 +111,9 @@ RUN apk update && apk add nodejs npm chromium RUN npm install -g https://github.com/sissbruecker/single-file-cli/tarball/4c54b3bc704cfb3e96cec2d24854caca3df0b3b6 # copy uBlock COPY --from=ublock-build /etc/linkding/uBOLite.chromium.mv3 uBOLite.chromium.mv3/ -# create chromium profile folder for user running background tasks -RUN mkdir -p chromium-profile && chown -R www-data:www-data chromium-profile +# create chromium profile folder for user running background tasks and set permissions +RUN mkdir -p chromium-profile && \ + chown -R www-data:www-data chromium-profile && \ + chown -R www-data:www-data uBOLite.chromium.mv3 # enable snapshot support ENV LD_ENABLE_SNAPSHOTS=True diff --git a/docker/default.Dockerfile b/docker/default.Dockerfile index 629bbdd..242567c 100644 --- a/docker/default.Dockerfile +++ b/docker/default.Dockerfile @@ -115,7 +115,9 @@ RUN apt-get install -y gnupg2 apt-transport-https ca-certificates && \ RUN npm install -g https://github.com/sissbruecker/single-file-cli/tarball/4c54b3bc704cfb3e96cec2d24854caca3df0b3b6 # copy uBlock COPY --from=ublock-build /etc/linkding/uBOLite.chromium.mv3 uBOLite.chromium.mv3/ -# create chromium profile folder for user running background tasks -RUN mkdir -p chromium-profile && chown -R www-data:www-data chromium-profile +# create chromium profile folder for user running background tasks and set permissions +RUN mkdir -p chromium-profile && \ + chown -R www-data:www-data chromium-profile && \ + chown -R www-data:www-data uBOLite.chromium.mv3 # enable snapshot support ENV LD_ENABLE_SNAPSHOTS=True