From 0ab0bb98f07fda3f0e1424ee70715f978ead89a5 Mon Sep 17 00:00:00 2001 From: safavimohadeseh78 Date: Wed, 9 Sep 2026 20:06:18 +0330 Subject: [PATCH] Install npm packages from npmmirror so Dokploy is not stuck. Co-authored-by: Cursor --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 44e2d01..a1fc128 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,18 @@ WORKDIR /app COPY package.json package-lock.json ./ COPY scripts ./scripts -RUN npm config set fetch-retry-mintimeout 10000 \ +ENV NPM_CONFIG_REGISTRY=https://registry.npmmirror.com +RUN npm config set registry https://registry.npmmirror.com \ + && npm config set replace-registry-host always \ + && npm config set fetch-retry-mintimeout 10000 \ && npm config set fetch-retry-maxtimeout 120000 \ && npm config set fetch-timeout 120000 \ - && npm config set fetch-retries 5 + && npm config set fetch-retries 5 \ + && npm config set progress true \ + && npm config set loglevel info ENV NODE_ENV=development -RUN npm ci --include=dev --foreground-scripts +RUN npm ci --include=dev --foreground-scripts --no-audit --no-fund --registry=https://registry.npmmirror.com COPY . .