File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ RUN if [ -z "$PRODUCTION" ]; then echo "Using staging config for build"; cp ./ap
3434
3535# Generate Prisma client (from api/ directory)
3636WORKDIR /app/api
37- RUN npx prisma generate
37+ RUN pnpm exec prisma generate
3838
3939# Compile TypeScript to JavaScript
4040RUN pnpm build
@@ -83,7 +83,7 @@ ENV NODE_ENV=production
8383WORKDIR /app/api
8484
8585# Generate Prisma client in production stage
86- RUN npx prisma generate
86+ RUN pnpm exec prisma generate
8787
8888# Switch to non-root user
8989USER 1000
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ ENV NODE_ENV=production
3333WORKDIR /app/api
3434
3535# Generate Prisma client BEFORE building
36- RUN npx prisma generate
36+ RUN pnpm exec prisma generate
3737
3838# Build TypeScript code
3939RUN pnpm build
You can’t perform that action at this time.
0 commit comments