Skip to content

Commit

Permalink
Merge branch 'master' into pdo_sqlsrv
Browse files Browse the repository at this point in the history
  • Loading branch information
boboldehampsink committed Dec 2, 2024
2 parents faec744 + 0d748b7 commit aabb961
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ ONBUILD COPY composer.json composer.lock /app/user/
ENV COMPOSER_ALLOW_SUPERUSER=1
ONBUILD RUN composer install --prefer-dist --no-scripts --no-progress --no-interaction --no-autoloader

# run npm or yarn install
# 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 || npm install --no-progress --ignore-scripts --legacy-peer-deps
ONBUILD RUN [ -f yarn.lock ] && yarn install --no-progress --ignore-scripts --network-timeout 1000000 || yarn install --mode=skip-build --network-timeout 1000000

# rest of app
ONBUILD COPY . /app/user/
Expand All @@ -160,6 +160,6 @@ ONBUILD COPY . /app/user/
ONBUILD RUN cat composer.json | python -c 'import sys,json; sys.exit("post-install-cmd" not in json.load(sys.stdin).get("scripts", {}));' && composer run-script post-install-cmd || true
ONBUILD RUN composer dump-autoload

# run npm hooks
# run yarn hooks
ENV CPPFLAGS="-DPNG_ARM_NEON_OPT=0"
ONBUILD RUN [ -f yarn.lock ] && yarn install --force --no-progress || yarn rebuild || npm rebuild --no-progress
ONBUILD RUN [ -f yarn.lock ] && yarn install --force --no-progress || yarn rebuild

0 comments on commit aabb961

Please sign in to comment.