diff --git a/Dockerfile b/Dockerfile index db251a7..263d0b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ WORKDIR /app COPY package*.json ./ # 安装依赖 -RUN npm install +RUN npm config set registry https://registry.npmmirror.com && \ + npm install # 复制项目文件 COPY . .