diff --git a/Dockerfile b/Dockerfile index b94f7d0..164b68d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM node:20-alpine WORKDIR /app -# Install build tools needed for better-sqlite3 native bindings -RUN apk add --no-cache python3 make g++ +# Install build tools + OpenSSL (required by Prisma query engine on Alpine) +RUN apk add --no-cache python3 make g++ openssl openssl-dev # Copy package manifests COPY package*.json ./ diff --git a/prisma/schema.prisma b/prisma/schema.prisma index e1b1fbc..2f29c91 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,5 +1,7 @@ generator client { - provider = "prisma-client-js" + provider = "prisma-client-js" + // linux-musl-openssl-3.0.x = Alpine Linux (Docker); native = local dev/build + binaryTargets = ["native", "linux-musl-openssl-3.0.x"] } datasource db {