Skip to content

Commit 36f7877

Browse files
committed
install pnpm during build
1 parent 4ca6506 commit 36f7877

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ RUN pnpm run build --filter=webapp...
6666
FROM ${NODE_IMAGE} AS runner
6767
RUN apt-get update && apt-get install -y openssl netcat-openbsd ca-certificates
6868
WORKDIR /triggerdotdev
69-
RUN corepack enable
7069
ENV NODE_ENV production
7170

7271
COPY --from=base /usr/bin/dumb-init /usr/bin/dumb-init
@@ -94,5 +93,8 @@ ENV BUILD_APP_VERSION=${BUILD_APP_VERSION} \
9493

9594
EXPOSE 3000
9695

96+
# Add global pnpm shims and install pnpm during build
97+
RUN corepack enable && corepack prepare --activate
98+
9799
USER node
98100
CMD ["./scripts/entrypoint.sh"]

0 commit comments

Comments
 (0)