Skip to content

Commit

Permalink
Only use Yarn modern
Browse files Browse the repository at this point in the history
  • Loading branch information
boboldehampsink committed Dec 10, 2024
1 parent 3fba9a3 commit 2638ce6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ ONBUILD RUN composer install --prefer-dist --no-scripts --no-progress --no-inter

# run yarn install
ONBUILD COPY *package*.json *yarn.lock .yarn* *.npmrc Dockerfile /app/user/
ONBUILD RUN [ -f yarn.lock ] && yarn install --no-progress --ignore-scripts --network-timeout 1000000 || yarn install --mode=skip-build --network-timeout 1000000
ONBUILD RUN [ -f yarn.lock ] && yarn install --mode=skip-build --network-timeout 1000000

# rest of app
ONBUILD COPY . /app/user/
Expand All @@ -152,4 +152,4 @@ ONBUILD RUN composer dump-autoload

# run yarn hooks
ENV CPPFLAGS="-DPNG_ARM_NEON_OPT=0"
ONBUILD RUN [ -f yarn.lock ] && yarn install --force --no-progress || yarn rebuild
ONBUILD RUN [ -f yarn.lock ] && yarn rebuild
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Usage: `FROM ghcr.io/robuust/heroku-php`
* Nginx
* PHP 8.3.x with Redis, Imagick and PCov
* Composer 2
* Yarn (classic and modern)
* Node 22.x
* Yarn 4.x

0 comments on commit 2638ce6

Please sign in to comment.