chore: use internal Nexus npm registry

This commit is contained in:
2026-06-16 11:38:57 +08:00
parent 8735f0e80d
commit 000918e0fc

View File

@@ -1,13 +1,13 @@
FROM node:20 AS base
# 设置阿里系 npm 镜像
RUN npm config set registry https://registry.npmmirror.com/
# 设置内网 Nexus npm 镜像
RUN npm config set registry http://192.168.114.7:82/repository/npm-proxy/
# --- Dependencies ---
FROM base AS deps
WORKDIR /app
COPY package.json bun.lock ./
RUN npm install --registry=https://registry.npmmirror.com/ --fetch-timeout=120000 --fetch-retries=5
RUN npm install --registry=http://192.168.114.7:82/repository/npm-proxy/ --fetch-timeout=120000 --fetch-retries=5
# --- Build ---
FROM base AS builder