fix: Dockerfile 切回 alpine + openssl1.1-compat 兼容 Prisma musl 引擎
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 31s
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 31s
This commit is contained in:
parent
f0af46dbfe
commit
0df5b67a84
@ -1,8 +1,8 @@
|
|||||||
FROM node:22-slim AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
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 ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
@ -15,11 +15,11 @@ RUN npx prisma generate
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN npm prune --production
|
RUN npm prune --production
|
||||||
|
|
||||||
FROM node:22-slim
|
FROM node:22-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
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/node_modules ./node_modules
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user