This commit is contained in:
+4
-4
@@ -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://registry.npmjs.org
|
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://registry.npmjs.org
|
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
|
||||||
@@ -21,7 +21,7 @@ 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://mirror-npm.runflare.com
|
||||||
|
|
||||||
RUN pnpm install --frozen-lockfile --loglevel info --registry=https://registry.npmjs.org
|
RUN pnpm install --frozen-lockfile --loglevel info --registry=https://package-mirror.liara.ir/repository/npm
|
||||||
|
|
||||||
|
|
||||||
# Stage 3: Build
|
# Stage 3: Build
|
||||||
@@ -37,7 +37,7 @@ 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://mirror-npm.runflare.com
|
||||||
RUN pnpm install --prod --frozen-lockfile --loglevel info --registry=https://registry.npmjs.org
|
RUN pnpm install --prod --frozen-lockfile --loglevel info --registry=https://package-mirror.liara.ir/repository/npm
|
||||||
|
|
||||||
|
|
||||||
# Stage 5: Runner
|
# Stage 5: Runner
|
||||||
|
|||||||
Reference in New Issue
Block a user