diff --git a/Dockerfile b/Dockerfile index c57e9bc..473edbb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ FROM node:24-alpine -# 使用中科大镜像源加速包安装 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories RUN apk add --no-cache python3 make g++ +RUN npm config set registry https://registry.npmmirror.com + WORKDIR /app COPY package*.json ./