Skip to content

Commit 1e245f1

Browse files
Added pnpm install.
1 parent bcbd212 commit 1e245f1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ COPY . .
2020
# Run Prisma Generate (this is safe and often needed for types)
2121
RUN npx prisma generate
2222

23-
# Build the application. This will now succeed because the database
24-
# service will be running and available on the network.
23+
# Build the application. This succeeds because the database is available.
2524
RUN pnpm run build
2625

2726
# Stage 2: Production Image
@@ -30,6 +29,11 @@ FROM node:22-alpine
3029

3130
WORKDIR /app
3231

32+
# ===================================================================
33+
# THE FIX: Install pnpm in the final production image as well.
34+
# ===================================================================
35+
RUN npm install -g pnpm
36+
3337
# Install netcat for the entrypoint healthcheck
3438
RUN apk add --no-cache netcat-openbsd
3539

0 commit comments

Comments
 (0)