@ -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 \
|
||||
|
3
compose/nextcloud/README.md
Normal file
3
compose/nextcloud/README.md
Normal 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.
|
@ -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"
|
Reference in New Issue
Block a user