From cbcb2614069e4cacf6bed54d650e4ff0327f265d Mon Sep 17 00:00:00 2001 From: Andrew Hurley Date: Tue, 9 Aug 2022 22:24:32 +0800 Subject: [PATCH] Dockerfile - move ARG PUID to required place after FROM --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2e22df..88708ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/