From a212b1beee5b024edf2a4c8abab8f206160c5c54 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 15 Aug 2023 13:56:25 +0200 Subject: [PATCH] Only run the composer and npm install if the folder is not there --- docker/php-fpm/start-container | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/php-fpm/start-container b/docker/php-fpm/start-container index 61a2f243..cefa2cd2 100644 --- a/docker/php-fpm/start-container +++ b/docker/php-fpm/start-container @@ -4,10 +4,10 @@ echo "➜ Set Correct Permissions" chmod -R 777 storage echo "➜ Install Composer Dependencies" -composer install +[[ -d vendor ]] || composer install echo "➜ Install NPM Dependencies" -npm install +[[ -d node_modules ]] || npm install echo "➜ Build Project Assets" npx gulp compile