This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ RUN pnpm fetch
1616# copy the rest of the content
1717COPY --chown=node:node . /home/node/app
1818
19- # `--ignore-scripts` prevents the `prepare` script from running. This avoids
20- # installation of pre-commit inside the container.
21- RUN pnpm install -r --offline --ignore-scripts
19+ # Prevent pre-commit from being installed, we don't need it here and it fails to install anyway
20+ ENV SKIP_PRE_COMMIT=true
21+
22+ RUN pnpm install -r --offline
2223
2324# disable telemetry when building the app
2425ENV NUXT_TELEMETRY_DISABLED=1
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ set -e
4+
5+ if [ -z " $SKIP_PRE_COMMIT " ]
6+ then
7+ echo " installing pre-commit"
8+ pnpm pc:download && pnpm pc:install
9+ else
10+ echo " skipping pre-commit installation"
11+ fi
Original file line number Diff line number Diff line change 1313 "author" : " sebworks" ,
1414 "private" : true ,
1515 "scripts" : {
16- "prepare" : " pnpm pc:download && pnpm pc: install" ,
16+ "prepare" : " ./bin/ install-pre-commit.sh " ,
1717 "predev" : " pnpm install && pnpm i18n:no-get" ,
1818 "dev" : " pnpm dev:only" ,
1919 "dev:only" : " nuxt --hostname 0.0.0.0" ,
You can’t perform that action at this time.
0 commit comments