This commit is contained in:
2025-10-21 13:14:13 +08:00
parent abdea80b03
commit 236418d9a6

View File

@@ -20,6 +20,10 @@ RUN npm run build
# 生产阶段
FROM node:24-alpine AS production
# 设置镜像源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
# 设置 npm 镜像源
RUN npm config set registry https://registry.npmmirror.com
WORKDIR /app