添加了依赖安装的代理

This commit is contained in:
carry 2025-02-19 14:41:06 +08:00
parent ca112ae1dc
commit 5ab7ebbe5a

View File

@ -8,7 +8,8 @@ WORKDIR /app
COPY package*.json ./
# 安装依赖
RUN npm install
RUN npm config set registry https://registry.npmmirror.com && \
npm install
# 复制项目文件
COPY . .