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