diff --git a/apps/admin-panel/Dockerfile b/apps/admin-panel/Dockerfile index 3b56ec5..36ffad3 100644 --- a/apps/admin-panel/Dockerfile +++ b/apps/admin-panel/Dockerfile @@ -7,7 +7,8 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" # Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead. -RUN npm install -g pnpm@9.0.0 turbo@2.10.12 \ +# Pin major only — Iranian mirrors often lag behind exact patch versions (e.g. 2.10.12). +RUN npm install -g pnpm@9 turbo@2 \ && printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc FROM base AS builder diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 4abbdae..064bc0d 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -7,7 +7,8 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" # Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead. -RUN npm install -g pnpm@9.0.0 turbo@2.10.12 \ +# Pin major only — Iranian mirrors often lag behind exact patch versions (e.g. 2.10.12). +RUN npm install -g pnpm@9 turbo@2 \ && printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc FROM base AS builder diff --git a/apps/user-app/Dockerfile b/apps/user-app/Dockerfile index 0c16b0c..b2d6c27 100644 --- a/apps/user-app/Dockerfile +++ b/apps/user-app/Dockerfile @@ -7,7 +7,8 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" # Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead. -RUN npm install -g pnpm@9.0.0 turbo@2.10.12 \ +# Pin major only — Iranian mirrors often lag behind exact patch versions (e.g. 2.10.12). +RUN npm install -g pnpm@9 turbo@2 \ && printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc FROM base AS builder