Skip to content

Commit 82dd56e

Browse files
committed
install pnpm for node user as well
1 parent 36f7877 commit 82dd56e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@ ENV BUILD_APP_VERSION=${BUILD_APP_VERSION} \
9393

9494
EXPOSE 3000
9595

96-
# Add global pnpm shims and install pnpm during build
96+
# Add global pnpm shims and install pnpm during build (root user)
9797
RUN corepack enable && corepack prepare --activate
9898

9999
USER node
100+
101+
# Ensure pnpm is installed during build and not silently downloaded at runtime (node user)
102+
RUN corepack prepare --activate
103+
100104
CMD ["./scripts/entrypoint.sh"]

0 commit comments

Comments
 (0)