CI 提速:引入按 lock hash 的依赖镜像缓存
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
ARG CI_IMAGE=mcr.microsoft.com/playwright:v1.51.1-jammy
|
||||
FROM ${CI_IMAGE}
|
||||
|
||||
ARG NPM_REGISTRY=https://registry.npmmirror.com
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm config set registry ${NPM_REGISTRY} && npm ci --prefer-offline --no-audit --progress=false
|
||||
Reference in New Issue
Block a user