fix: podman can't deploy

This commit is contained in:
2026-09-21 13:17:14 +08:00
parent 931d3ee1b7
commit 3fdce3ce94
8 changed files with 165 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
# =====================================================================
# ---------- 构建阶段 ----------
FROM node:24-alpine AS build
FROM docker.io/library/node:24-alpine AS build
WORKDIR /app
# 使用 npmmirror 加速 npm 全局安装与依赖拉取
@@ -24,7 +24,7 @@ COPY . .
RUN pnpm build
# ---------- 运行阶段 ----------
FROM nginx:1.27-alpine
FROM docker.io/library/nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html