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 VERSION="latest"
|
||||||
|
ARG PUID="33"
|
||||||
|
|
||||||
FROM docker.io/library/nextcloud:$VERSION
|
FROM docker.io/library/nextcloud:$VERSION
|
||||||
COPY ncloud-passwd /etc/password
|
RUN \
|
||||||
COPY ncloud-group /etc/group
|
if [[ $PUID != "33" ]]; then \
|
||||||
|
usermod --uid $PUID www-data && \
|
||||||
|
chown -R www-data /var/www/ \
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue