fix
This commit is contained in:
@@ -20,6 +20,10 @@ RUN npm run build
|
|||||||
# 生产阶段
|
# 生产阶段
|
||||||
FROM node:24-alpine AS production
|
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
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user