This commit is contained in:
parent
c48f4110c2
commit
9b842231c6
|
|
@ -2,6 +2,9 @@
|
|||
FROM 192.168.195.25:19900/library/node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
# 设置 npm 国内镜像源加速
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 先复制依赖文件,利用 Docker 缓存
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user