Skip to content

Commit e03fe27

Browse files
committed
fix(api): remove broken Prisma node_modules COPYs from Dockerfile
The Prisma client is bundled into dist/index.js by esbuild via the @prisma/adapter-pg driver adapter (JS-only, no native engine needed). The old COPYs referenced /app/node_modules/.prisma and /app/node_modules/@prisma which don't exist in pnpm's virtual store layout, breaking the build. Tested locally: build succeeds, image starts, API listens on port 3001.
1 parent 71bc056 commit e03fe27

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

apps/api/Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ RUN pnpm --filter @openlinear/api build
3939

4040
RUN pnpm --filter @openlinear/api --prod deploy /app/pruned
4141

42-
RUN cp -r node_modules/.prisma /app/pruned/node_modules/.prisma 2>/dev/null || true
43-
4442
FROM node:22-bookworm-slim AS runtime
4543

4644
ENV NODE_ENV=production
@@ -57,11 +55,7 @@ WORKDIR /app
5755

5856
COPY --from=build /app/pruned/node_modules ./node_modules
5957
COPY --from=build /app/apps/api/dist ./dist
60-
COPY --from=build /app/node_modules/.prisma ./node_modules/.prisma
61-
62-
COPY --from=build /app/node_modules/@prisma ./node_modules/@prisma
63-
64-
COPY packages/db/prisma ./prisma
58+
COPY --from=build /app/packages/db/prisma ./prisma
6559

6660
EXPOSE 3001
6761

0 commit comments

Comments
 (0)