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 . .
20
20
# Run Prisma Generate (this is safe and often needed for types)
21
21
RUN npx prisma generate
22
22
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.
25
24
RUN pnpm run build
26
25
27
26
# Stage 2: Production Image
@@ -30,6 +29,11 @@ FROM node:22-alpine
30
29
31
30
WORKDIR /app
32
31
32
+ # ===================================================================
33
+ # THE FIX: Install pnpm in the final production image as well.
34
+ # ===================================================================
35
+ RUN npm install -g pnpm
36
+
33
37
# Install netcat for the entrypoint healthcheck
34
38
RUN apk add --no-cache netcat-openbsd
35
39
You can’t perform that action at this time.
0 commit comments