Skip to content

Commit 625d374

Browse files
committed
fix: use pnpm in Dockerfile for faster builds
1 parent 03690f0 commit 625d374

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM node:22-alpine
1+
FROM node:20-alpine
22
WORKDIR /app
3-
COPY package*.json .
4-
RUN npm ci
3+
RUN corepack enable && corepack prepare pnpm@10.33.0 --activate
4+
COPY package.json pnpm-lock.yaml .npmrc ./
5+
RUN pnpm install --frozen-lockfile
56
COPY . .
6-
RUN npm run build
7+
RUN pnpm build
78
EXPOSE 3000
89
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)