From 0201089aeeb5705764fe9056f66fe51ac8b890cc Mon Sep 17 00:00:00 2001 From: Kavehhn174 Date: Tue, 25 Aug 2026 02:43:40 +0330 Subject: [PATCH] fix(docker): copy .npmrc and use npmmirror registry for fast builds --- .npmrc | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.npmrc b/.npmrc index b0bf76c..5e4086a 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -registry=https://package-mirror.liara.ir/repository/npm/ +registry=https://registry.npmmirror.com/ diff --git a/Dockerfile b/Dockerfile index 2ad8da5..5f4246e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM node:24-alpine WORKDIR /app -COPY package*.json ./ +COPY package*.json .npmrc* ./ -RUN npm install +RUN npm install --registry=https://registry.npmmirror.com COPY . .