Skip to content

Commit

Permalink
Enable corepack as part of the prebuilt image
Browse files Browse the repository at this point in the history
  • Loading branch information
boboldehampsink committed Nov 28, 2024
1 parent 5812b3a commit 8537e1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand All @@ -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
Expand Down

0 comments on commit 8537e1d

Please sign in to comment.