fix: make docker npm install more reliable

This commit is contained in:
2026-06-05 18:25:06 +08:00
parent 20654d9756
commit d626a27663

View File

@@ -7,7 +7,7 @@ RUN npm config set registry https://registry.npmmirror.com
FROM base AS deps
WORKDIR /app
COPY package.json bun.lock ./
RUN npm install --frozen-lockfile
RUN npm install --registry=https://registry.npmmirror.com --fetch-timeout=120000 --fetch-retries=5
# --- Build ---
FROM base AS builder