Refactor Dockerfile to use 'npm install' instead of 'npm ci' for dependency installation
This commit is contained in:
@@ -26,7 +26,7 @@ RUN npm config set registry https://registry.npmmirror.com
|
||||
COPY package*.json ./
|
||||
|
||||
# 安装项目依赖
|
||||
RUN npm ci --only=production && npm cache clean --force
|
||||
RUN npm i
|
||||
|
||||
# 复制项目文件
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user