Remove --ignore-scripts from Docker installs

The preinstall hook is needed during turbo docker-build. With
STACK_SKIP_TEMPLATE_GENERATION=true the heavy generate-sdks.ts is
skipped. The PATH fix (/bin) resolves the only-allow
module resolution issue that originally prompted --ignore-scripts.

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
Devin AI 2026-06-01 23:53:29 +00:00
parent 8b7ad16150
commit 4c4774a661
3 changed files with 3 additions and 6 deletions

View File

@ -45,8 +45,7 @@ COPY pnpm-workspace.yaml .
COPY turbo.json .
COPY configs ./configs
COPY --from=pruner /app/scripts/postinstall-patch-next-async-debug-info.mjs ./scripts/
RUN STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile --ignore-scripts
RUN node ./scripts/postinstall-patch-next-async-debug-info.mjs
RUN STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile
COPY --from=pruner /app/out/full/ .

View File

@ -43,8 +43,7 @@ COPY pnpm-workspace.yaml .
COPY turbo.json .
COPY configs ./configs
COPY --from=pruner /app/scripts/postinstall-patch-next-async-debug-info.mjs ./scripts/
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile --ignore-scripts
RUN node ./scripts/postinstall-patch-next-async-debug-info.mjs
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile
# copy over the rest of the code for the build
COPY --from=pruner /app/out/full/ .

View File

@ -41,8 +41,7 @@ COPY pnpm-workspace.yaml .
COPY turbo.json .
COPY configs ./configs
COPY --from=pruner /app/scripts/postinstall-patch-next-async-debug-info.mjs ./scripts/
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile --ignore-scripts
RUN node ./scripts/postinstall-patch-next-async-debug-info.mjs
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile
# copy over the rest of the code for the build
COPY --from=pruner /app/out/full/ .