Skip to content

Commit 29d6ece

Browse files
committed
fix: resolve pnpm not found in docker
1 parent 5b03e16 commit 29d6ece

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ FROM node:20-alpine AS runner
5050

5151
WORKDIR /app
5252

53+
# Enable pnpm via corepack for the runner if required
54+
# Or just copy the whole app
55+
RUN corepack enable && corepack prepare pnpm@10 --activate
56+
5357
# Set production environment
5458
ENV NODE_ENV=production
5559

@@ -73,4 +77,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
7377
CMD wget --no-verbose --tries=1 --spider http://localhost:3001/api/v1/health || exit 1
7478

7579
# Start the server
76-
CMD ["node", "dist/index.js"]
80+
CMD ["node", "./dist/index.js"]

0 commit comments

Comments
 (0)