This commit is contained in:
+3
-3
@@ -4,14 +4,14 @@ FROM node:22-alpine AS base
|
||||
ENV TZ=Asia/Tehran
|
||||
|
||||
# Runflare build hosts cannot reach registry.npmjs.org; use their npm mirror.
|
||||
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)
|
||||
FROM base AS deps
|
||||
WORKDIR /temp-deps
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile --loglevel info \
|
||||
--registry=https://mirror-npm.runflare.com
|
||||
--registry=https://package-mirror.liara.ir/repository/npm
|
||||
|
||||
# Stage 3: Build
|
||||
FROM base AS builder
|
||||
@@ -25,7 +25,7 @@ FROM base AS prod-deps
|
||||
WORKDIR /temp-deps
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --prod --frozen-lockfile --loglevel info \
|
||||
--registry=https://mirror-npm.runflare.com
|
||||
--registry=https://package-mirror.liara.ir/repository/npm
|
||||
|
||||
# Stage 5: Runner
|
||||
FROM base AS runner
|
||||
|
||||
Reference in New Issue
Block a user