Skip to content

Commit

Permalink
🐞 fix (CHASE Backend): copy over prisma engine
Browse files Browse the repository at this point in the history
branch: deployment
  • Loading branch information
m1212e committed Mar 3, 2024
1 parent 397b2f1 commit d26be52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.chase.backend
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ FROM oven/bun:alpine AS release
WORKDIR /app/prod
# dependencies
COPY --from=builder /app/staging/chase/backend/out .
# we need the generated prisma files at runtime since it contains the prisma engine
COPY --from=builder /app/staging/chase/backend/prisma ./prisma/
ENV NODE_ENV=production
ENV PORT=3001
# run the app
Expand Down
1 change: 1 addition & 0 deletions chase/backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
generator client {
provider = "prisma-client-js"
output = "./generated/client"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}

datasource db {
Expand Down

0 comments on commit d26be52

Please sign in to comment.