This commit is contained in:
2026-01-09 08:46:01 +08:00
parent d5b75fee0d
commit f3f1609455
6 changed files with 135 additions and 54 deletions

View File

@@ -4,7 +4,9 @@ WORKDIR /app
COPY frontend ./
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi && \
# 配置 npm 淘宝镜像
RUN npm config set registry https://registry.npmmirror.com && \
if [ -f package-lock.json ]; then npm ci; else npm install; fi && \
npm run build
FROM nginx:1.29 AS runner