From 21578e53e6a61dc811a725e3b218ab10a2a7f069 Mon Sep 17 00:00:00 2001 From: Bob Olde Hampsink Date: Thu, 28 Nov 2024 08:42:30 +0100 Subject: [PATCH] Revert "Enable corepack as part of the prebuilt image" This reverts commit 8537e1dd15420936a4e440dd56b2f55d6926d9fb. --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f54afa8..aaebba8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -126,9 +126,6 @@ RUN echo "\n\ extension=xsl.so \n\ " >> /app/.heroku/php/etc/php/php.ini -# Enable Corepack -RUN corepack enable --install-directory /app/.heroku/node - # copy dep files first so Docker caches the install step if they don't change ONBUILD COPY composer.json composer.lock /app/user/ @@ -138,6 +135,7 @@ ONBUILD RUN composer install --prefer-dist --no-scripts --no-progress --no-inter # run npm or yarn install ONBUILD COPY *package*.json *yarn.lock *.yarnrc.yml *.npmrc Dockerfile /app/user/ +ONBUILD RUN corepack enable --install-directory /app/.heroku/node ONBUILD RUN [ -f yarn.lock ] && yarn install --no-progress --ignore-scripts --network-timeout 1000000 || yarn install --mode=skip-build --network-timeout 1000000 || npm install --no-progress --ignore-scripts --legacy-peer-deps # rest of app