mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
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:
parent
8b7ad16150
commit
4c4774a661
@ -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/ .
|
||||
|
||||
|
||||
@ -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/ .
|
||||
|
||||
@ -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/ .
|
||||
|
||||
Loading…
Reference in New Issue
Block a user