build: 完善一键部署脚本

This commit is contained in:
2026-05-23 17:24:58 +08:00
parent bc5bb28b15
commit d236b5348a
4 changed files with 64 additions and 3 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
# ---- Build Stage ----
FROM node:20-alpine AS builder
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
RUN npm config set registry https://registry.npmmirror.com && npm ci
COPY . .
RUN npm run build