docker build时NPM使用镜像

This commit is contained in:
John Smith 2024-07-30 00:16:36 +08:00
parent 187d45e6d9
commit 75938141f0

View File

@ -8,7 +8,7 @@ WORKDIR "${BASE_PATH}/frontend"
# 前端依赖
COPY frontend/package.json ./
RUN npm i
RUN npm i --registry=https://registry.npmmirror.com
# 编译前端
COPY frontend ./