Skip to content

Commit

Permalink
Fix permission issue with ublock extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker committed Oct 2, 2024
1 parent 5cd6d77 commit 0dd05b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions docker/default.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0dd05b9

Please sign in to comment.