fix: Prisma binaryTargets linux-musl-openssl-3.0.x + Dockerfile 精简
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1m31s
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1m31s
This commit is contained in:
parent
0df5b67a84
commit
7e308b01cc
@ -2,7 +2,7 @@ FROM node:22-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache openssl openssl1.1-compat
|
||||
RUN apk add --no-cache openssl
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
@ -19,7 +19,7 @@ FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache openssl openssl1.1-compat
|
||||
RUN apk add --no-cache openssl
|
||||
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
provider = "prisma-client-js"
|
||||
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
|
||||
}
|
||||
|
||||
datasource db {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user