From cfcf5f89ea5196e3f0dc2fd75e2cf8f49117cd3e Mon Sep 17 00:00:00 2001 From: Jonas Thelemann Date: Thu, 11 Apr 2019 01:53:49 +0200 Subject: [PATCH] Dockerfile: Merge Copy And Chown --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a8e0f6d7..79fcab08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,12 +40,9 @@ RUN apt-get update \ && docker-php-ext-install \ pdo_pgsql -# Create Apache directory and copy the files +# Create Apache directory and copy the files, changing the server files' owner RUN mkdir -p $APACHE_DIR -COPY --from=stage_node /app/dist/$PROJECT_NAME $APACHE_DIR/ - -# Change server files' owner -RUN chown www-data:www-data -R $APACHE_DIR/server +COPY --from=stage_node --chown=www-data:www-data /app/dist/$PROJECT_NAME $APACHE_DIR/ # Copy Apache and PHP config files COPY docker/apache/conf/* $APACHE_CONFDIR/conf-available/