fix(docker): copy .npmrc and use npmmirror registry for fast builds

This commit is contained in:
2026-08-25 02:43:34 +03:30
parent 4d711fe39c
commit 38e048067b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
registry=https://package-mirror.liara.ir/repository/npm/ registry=https://registry.npmmirror.com/
+2 -2
View File
@@ -7,9 +7,9 @@ FROM node:22-alpine AS dependencies
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json .npmrc* ./
RUN npm ci --omit=dev && npm cache clean --force RUN npm ci --omit=dev --registry=https://registry.npmmirror.com && npm cache clean --force
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Stage 2: Production runtime image # Stage 2: Production runtime image