diff --git a/Dockerfile b/Dockerfile index 1ce2fd7..aec9eda 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,14 @@ FROM node:22-alpine AS base ENV TZ=Asia/Tehran +ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com + +# Change Alpine repo +RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories # 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 +# RUN npm install -g pnpm@9.15.9 # Stage 2: Install all dependencies (including dev) FROM base AS deps