Skip to content

Commit cc1f40d

Browse files
committed
chore: removed use of npx, use pnpm
1 parent 6dbc49e commit cc1f40d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
3636
WORKDIR /app/api
37-
RUN npx prisma generate
37+
RUN pnpm exec prisma generate
3838

3939
# Compile TypeScript to JavaScript
4040
RUN pnpm build
@@ -83,7 +83,7 @@ ENV NODE_ENV=production
8383
WORKDIR /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
8989
USER 1000

api/Dockerfile.cron

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV NODE_ENV=production
3333
WORKDIR /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
3939
RUN pnpm build

0 commit comments

Comments
 (0)