diff --git a/Dockerfile b/Dockerfile index aaebba8..f54afa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -126,6 +126,9 @@ 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/ @@ -135,7 +138,6 @@ 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