修改访问源
This commit is contained in:
@@ -5,13 +5,16 @@ ARG NGINX_IMAGE=nginx:1.28-alpine
|
||||
|
||||
FROM ${NODE_IMAGE} AS dependencies
|
||||
|
||||
ARG NPM_REGISTRY=https://registry.npmmirror.com
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
COPY apps/admin/package.json apps/admin/package.json
|
||||
COPY apps/miniprogram/package.json apps/miniprogram/package.json
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
npm ci --registry=${NPM_REGISTRY} --no-audit --no-fund
|
||||
|
||||
FROM dependencies AS api-builder
|
||||
|
||||
|
||||
Reference in New Issue
Block a user