From 4553406ee8591052ad1453f92d92287f711ea42f Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Mon, 16 Jan 2023 16:31:05 +0100 Subject: [PATCH] chore(Dockerfile): squash layers (chown) --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c678243..58b5574 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,12 +53,9 @@ RUN tar -xzvf panel.tar.gz # Install dependencies RUN composer install --no-dev --optimize-autoloader -# Change the owner of the files, recursively -RUN chown -R www-data:www-data /var/www/pterodactyl - FROM base as app WORKDIR /var/www/pterodactyl USER www-data -COPY --from=builder /var/www/pterodactyl /var/www/ptereodactyl +COPY --from=builder --chown=www-data:www-data /var/www/pterodactyl /var/www/pterodactyl