fix: 修改dockerfile
This commit is contained in:
parent
b193e9faa0
commit
30c7f3c3e0
@ -1,5 +1,5 @@
|
|||||||
# ========== 阶段1:构建前端 ==========
|
# ========== 阶段1:构建前端 ==========
|
||||||
FROM node:18-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ COPY . .
|
|||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# ========== 阶段2:生产运行 ==========
|
# ========== 阶段2:生产运行 ==========
|
||||||
FROM node:18-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
|
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user