From 6480542c3383776e5b2c67eb68bfc4b6b985fa02 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Fri, 26 Mar 2021 02:37:09 +0200 Subject: [PATCH] No need for copying files twice --- api/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index c5e8c62..de5f6d0 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -36,10 +36,7 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local RUN groupadd -g 1000 www RUN useradd -u 1000 -ms /bin/bash -g www www -# Copy existing application directory contents -COPY . /var/www - -# Copy existing application directory permissions +# Copy existing application directory contents with correct permissions COPY --chown=www:www . /var/www # Copy PHP configuration -- 2.2.2