update mirrors
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-14 15:12:19 +03:30
parent 3a84740d9a
commit 0e8e0cba2e
+6 -6
View File
@@ -3,13 +3,13 @@ FROM node:22-alpine AS base
ENV TZ=Asia/Tehran ENV TZ=Asia/Tehran
# Use the public npm registry to avoid paid/unstable mirror outages. # Use the public npm registry to avoid paid/unstable mirror outages.
ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm
# Change Alpine repo # Change Alpine repo
RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories
# Install pnpm globally (uses NPM_CONFIG_REGISTRY mirror above). # Install pnpm globally (uses NPM_CONFIG_REGISTRY mirror above).
RUN npm install -g pnpm@9.15.9 --registry=https://mirror-npm.runflare.com RUN npm install -g pnpm@9.15.9 --registry=https://package-mirror.liara.ir/repository/npm
# Stage 2: Install all dependencies (including dev) # Stage 2: Install all dependencies (including dev)
FROM base AS deps FROM base AS deps
@@ -19,9 +19,9 @@ COPY package.json pnpm-lock.yaml ./
# @nestjs/cli and typescript are required for the build step. # @nestjs/cli and typescript are required for the build step.
ENV NODE_ENV=development ENV NODE_ENV=development
# RUN pnpm install --frozen-lockfile --loglevel info \ # RUN pnpm install --frozen-lockfile --loglevel info \
# --registry=https://mirror-npm.runflare.com # --registry=https://package-mirror.liara.ir/repository/npm
RUN pnpm install --frozen-lockfile --loglevel info --registry=https://mirror-npm.runflare.com RUN pnpm install --frozen-lockfile --loglevel info --registry=https://package-mirror.liara.ir/repository/npm
# Stage 3: Build # Stage 3: Build
@@ -36,8 +36,8 @@ FROM base AS prod-deps
WORKDIR /temp-deps WORKDIR /temp-deps
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
# RUN pnpm install --prod --frozen-lockfile --loglevel info \ # RUN pnpm install --prod --frozen-lockfile --loglevel info \
# --registry=https://mirror-npm.runflare.com # --registry=https://package-mirror.liara.ir/repository/npm
RUN pnpm install --prod --frozen-lockfile --loglevel info --registry=https://mirror-npm.runflare.com RUN pnpm install --prod --frozen-lockfile --loglevel info --registry=https://package-mirror.liara.ir/repository/npm
# Stage 5: Runner # Stage 5: Runner