fix: Dockerfile 切回 alpine + openssl1.1-compat 兼容 Prisma musl 引擎
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 31s

This commit is contained in:
WangDL 2026-05-09 19:32:07 +08:00
parent f0af46dbfe
commit 0df5b67a84

View File

@ -1,8 +1,8 @@
FROM node:22-slim AS builder
FROM node:22-alpine AS builder
WORKDIR /app
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache openssl openssl1.1-compat
COPY package.json package-lock.json ./
RUN npm ci
@ -15,11 +15,11 @@ RUN npx prisma generate
RUN npm run build
RUN npm prune --production
FROM node:22-slim
FROM node:22-alpine
WORKDIR /app
RUN apt-get update -y && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache openssl openssl1.1-compat
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist