Skip to content

Commit d26be52

Browse files
committed
🐞 fix (CHASE Backend): copy over prisma engine
branch: deployment
1 parent 397b2f1 commit d26be52

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile.chase.backend

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ FROM oven/bun:alpine AS release
2929
WORKDIR /app/prod
3030
# dependencies
3131
COPY --from=builder /app/staging/chase/backend/out .
32+
# we need the generated prisma files at runtime since it contains the prisma engine
33+
COPY --from=builder /app/staging/chase/backend/prisma ./prisma/
3234
ENV NODE_ENV=production
3335
ENV PORT=3001
3436
# run the app

chase/backend/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
generator client {
55
provider = "prisma-client-js"
66
output = "./generated/client"
7+
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
78
}
89

910
datasource db {

0 commit comments

Comments
 (0)