Skip to content

Commit

Permalink
docker: use pnpm instead of yarn for reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Dec 22, 2024
1 parent af6a029 commit fdc91ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM node:22.3-bookworm-slim

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

WORKDIR /node
COPY . .

RUN yarn
RUN pnpm i
RUN chmod +x /node/entrypoint.sh

ENTRYPOINT ["/bin/bash", "/node/entrypoint.sh"]
2 changes: 1 addition & 1 deletion packages/node/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
exec yarn cli "$@"
exec pnpm cli "$@"

0 comments on commit fdc91ef

Please sign in to comment.