install pnpm for node user as well
🚀 Publish Trigger.dev Docker / units (push) Failing after 11m2s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 11m3s
🚀 Publish Trigger.dev Docker / publish-webapp (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-worker (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-worker-v4 (push) Has been skipped

This commit is contained in:
nicktrn
2025-06-18 10:46:21 +01:00
parent 36f787749d
commit 82dd56e87b
+5 -1
View File
@@ -93,8 +93,12 @@ ENV BUILD_APP_VERSION=${BUILD_APP_VERSION} \
EXPOSE 3000
# Add global pnpm shims and install pnpm during build
# Add global pnpm shims and install pnpm during build (root user)
RUN corepack enable && corepack prepare --activate
USER node
# Ensure pnpm is installed during build and not silently downloaded at runtime (node user)
RUN corepack prepare --activate
CMD ["./scripts/entrypoint.sh"]