Dockerfile - move ARG PUID to required place after FROM
This commit is contained in:
parent
a4fc6e11d0
commit
cbcb261406
|
|
@ -1,9 +1,8 @@
|
|||
ARG VERSION="latest"
|
||||
ARG PUID="33"
|
||||
ARG VERSION=latest
|
||||
|
||||
FROM docker.io/library/nextcloud:$VERSION
|
||||
|
||||
ARG PUID=33
|
||||
RUN \
|
||||
if [[ $PUID != "33" ]]; then \
|
||||
usermod --uid $PUID www-data && \
|
||||
chown -R www-data /var/www/ \
|
||||
fi
|
||||
chown -R www-data /var/www/
|
||||
|
|
|
|||
Loading…
Reference in New Issue