From 3d1bbefb22df05a0803002c05ecb2626ba5db4a7 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Fri, 16 Apr 2021 02:35:51 +0300 Subject: [PATCH] Set ownership for /var/www --- api/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 53e21ba..28bd041 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -34,7 +34,8 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local # Add user for laravel application RUN groupadd -g 1000 www && \ - useradd -u 1000 -ms /bin/bash -g www www + useradd -u 1000 -ms /bin/bash -g www www && \ + chown 1000:1000 /var/www # Copy existing application directory contents with correct permissions COPY --chown=1000:1000 . /var/www -- 2.2.2