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

This commit is contained in:
2026-07-08 15:54:41 +03:30
parent 8b901e4d02
commit b1a02d6b0d
+5 -4
View File
@@ -2,13 +2,14 @@
FROM node:22-alpine AS base
ENV TZ=Asia/Tehran
ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com
# Use the public npm registry to avoid paid/unstable mirror outages.
ENV NPM_CONFIG_REGISTRY=https://registry.npmjs.org
# Change Alpine repo
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).
RUN npm install -g pnpm@9.15.9
RUN npm install -g pnpm@9.15.9 --registry=https://registry.npmjs.org
# Stage 2: Install all dependencies (including dev)
FROM base AS deps
@@ -20,7 +21,7 @@ ENV NODE_ENV=development
# RUN pnpm install --frozen-lockfile --loglevel info \
# --registry=https://mirror-npm.runflare.com
RUN pnpm install --frozen-lockfile --loglevel info
RUN pnpm install --frozen-lockfile --loglevel info --registry=https://registry.npmjs.org
# Stage 3: Build
@@ -36,7 +37,7 @@ WORKDIR /temp-deps
COPY package.json pnpm-lock.yaml ./
# RUN pnpm install --prod --frozen-lockfile --loglevel info \
# --registry=https://mirror-npm.runflare.com
RUN pnpm install --prod --frozen-lockfile --loglevel info
RUN pnpm install --prod --frozen-lockfile --loglevel info --registry=https://registry.npmjs.org
# Stage 5: Runner