File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ COPY . .
2020# Run Prisma Generate (this is safe and often needed for types)
2121RUN 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.
2524RUN pnpm run build
2625
2726# Stage 2: Production Image
@@ -30,6 +29,11 @@ FROM node:22-alpine
3029
3130WORKDIR /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
3438RUN apk add --no-cache netcat-openbsd
3539
You can’t perform that action at this time.
0 commit comments