Skip to content

Commit be6ccd6

Browse files
committed
fix: remove deprecated Prisma CLI binary targets and ensure generated files are copied
1 parent 5d8c8be commit be6ccd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ WORKDIR /app
55
COPY package*.json pnpm-*.yaml ./
66
COPY prisma ./prisma/
77

8-
ENV PRISMA_CLI_BINARY_TARGETS=debian-openssl-3.0.x
9-
108
RUN corepack enable && \
119
npm install @antfu/ni -g
1210
RUN nci
11+
RUN nr prisma:generate
1312

1413
COPY . .
1514

@@ -36,6 +35,7 @@ COPY --from=builder /app/package*.json ./
3635
COPY --from=builder /app/pnpm-*.yaml ./
3736
COPY --from=builder /app/dist ./dist
3837
COPY --from=builder /app/prisma ./prisma
38+
COPY --from=builder /app/generated ./prisma/generated
3939

4040
EXPOSE 3000
4141
CMD [ "npm", "run", "start:prod" ]

0 commit comments

Comments
 (0)