Dockerfile, README update #3

Merged
eriks merged 1 commits from nextcloud_dockerfile into main 2022-07-08 23:00:24 +03:00
3 changed files with 10 additions and 10 deletions

View File

@ -1,10 +1,13 @@
FROM nextcloud:23-fpm-alpine
ARG UID=1000
ARG GID=1001
RUN apk add shadow && \
groupmod -g 1001 www-data && \
usermod -u 1000 -g 1001 www-data && \
find / -user 82 -exec chown -v -h 1000 '{}' \; && \
find / -group 82 -exec chgrp -v 1001 '{}' \;
groupmod -g $GID www-data && \
usermod -u $UID -g $GID www-data && \
find / -user 82 -exec chown -v -h $UID '{}' \; && \
find / -group 82 -exec chgrp -v $GID '{}' \;
RUN apk add --no-cache supervisor imagemagick-dev imagemagick \
&& mkdir /var/log/supervisord /var/run/supervisord \

View File

@ -0,0 +1,3 @@
# Permission
If Nextcloud data is being placed in a docker managed volume, then `Dockerfile` can be updated by removing L6-L10 thus making the image smaller and not modifying the permissions for Nextcloud.
If Nextcloud data should be accessible from "bare metal system" as a specific user, then modify `Dockerfile` with correct `UID` and `GID` values.

View File

@ -1,6 +0,0 @@
#!/bin/sh
find / -user 82 -exec chown -v -h 1000 '{}' \;
find / -group 82 -exec chgrp -v 1001 '{}' \;
/entrypoint.sh "php-fpm"