diff --git a/Dockerfile b/Dockerfile index 40cf792..8ec8433 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY package*.json ./ # Install dependencies -RUN apk add --no-cache python3 make g++ +RUN apk add --no-cache python3 make g++ openssl libc6-compat RUN npm ci # Copy source code @@ -28,7 +28,7 @@ WORKDIR /app COPY package*.json ./ # Install production dependencies only -RUN apk add --no-cache python3 make g++ +RUN apk add --no-cache python3 make g++ openssl libc6-compat RUN npm ci --only=production # Copy Prisma schema and generate client diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 478a512..33ceeb1 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -2,7 +2,8 @@ // learn more about it in the docs: https://pris.ly/d/prisma-schema generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" + binaryTargets = ["native", "linux-musl-arm64-openssl-3.0.x"] } datasource db {