mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-21 05:27:29 +08:00
fix: docker file
This commit is contained in:
@@ -25,9 +25,6 @@ COPY . .
|
|||||||
# 生成生产构建
|
# 生成生产构建
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# 移除 devDependencies,仅保留生产依赖,减小体积
|
|
||||||
RUN pnpm prune --prod
|
|
||||||
|
|
||||||
# ---- 第 3 阶段:生成运行时镜像 ----
|
# ---- 第 3 阶段:生成运行时镜像 ----
|
||||||
FROM node:20-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user