Dockerfile - change UID of www-data rather than copy passwd and group
This commit is contained in:
parent
f7d9c2142b
commit
a4fc6e11d0
|
|
@ -1,5 +1,9 @@
|
|||
ARG VERSION="latest"
|
||||
ARG PUID="33"
|
||||
|
||||
FROM docker.io/library/nextcloud:$VERSION
|
||||
COPY ncloud-passwd /etc/password
|
||||
COPY ncloud-group /etc/group
|
||||
RUN \
|
||||
if [[ $PUID != "33" ]]; then \
|
||||
usermod --uid $PUID www-data && \
|
||||
chown -R www-data /var/www/ \
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue