Fixed Prisma docker error.

This commit is contained in:
Mike Cao 2024-12-12 22:07:20 -08:00
parent 64b4af4bf1
commit d43293da72
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
RUN set -x \ RUN set -x \
&& apk add --no-cache curl \ && apk add --no-cache curl openssl \
&& yarn add npm-run-all dotenv semver prisma@5.17.0 && yarn add npm-run-all dotenv semver prisma@5.17.0
# You only need to copy next.config.js if you are NOT using the default configuration # You only need to copy next.config.js if you are NOT using the default configuration

View File

@ -1,5 +1,6 @@
generator client { generator client {
provider = "prisma-client-js" provider = "prisma-client-js"
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
} }
datasource db { datasource db {
@ -112,7 +113,6 @@ model WebsiteEvent {
@@index([visitId]) @@index([visitId])
@@index([websiteId]) @@index([websiteId])
@@index([websiteId, createdAt]) @@index([websiteId, createdAt])
@@index([websiteId, createdAt, urlPath]) @@index([websiteId, createdAt, urlPath])
@@index([websiteId, createdAt, urlQuery]) @@index([websiteId, createdAt, urlQuery])
@@index([websiteId, createdAt, referrerDomain]) @@index([websiteId, createdAt, referrerDomain])