Install pnpm in builder

This commit is contained in:
Luke Vella 2024-10-13 17:52:37 +01:00
parent d217ec21d7
commit f412765eb1
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C

View file

@ -8,6 +8,7 @@ RUN turbo prune --scope=@rallly/web --docker
FROM node:20 AS installer
WORKDIR /app
RUN npm install -g pnpm
COPY .gitignore .gitignore
COPY --from=builder /app/out/json/ .
COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
@ -39,7 +40,7 @@ RUN apt-get update \
WORKDIR /app
RUN npm install -g prisma
RUN npm install -g pnpm prisma
# Don't run production as root
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs