fix some for mirror
This commit is contained in:
@@ -7,7 +7,8 @@ ENV PNPM_HOME="/pnpm"
|
|||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
# Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead.
|
# Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead.
|
||||||
RUN npm install -g pnpm@9.0.0 turbo@2.10.12 \
|
# Pin major only — Iranian mirrors often lag behind exact patch versions (e.g. 2.10.12).
|
||||||
|
RUN npm install -g pnpm@9 turbo@2 \
|
||||||
&& printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc
|
&& printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|||||||
+2
-1
@@ -7,7 +7,8 @@ ENV PNPM_HOME="/pnpm"
|
|||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
# Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead.
|
# Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead.
|
||||||
RUN npm install -g pnpm@9.0.0 turbo@2.10.12 \
|
# Pin major only — Iranian mirrors often lag behind exact patch versions (e.g. 2.10.12).
|
||||||
|
RUN npm install -g pnpm@9 turbo@2 \
|
||||||
&& printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc
|
&& printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ ENV PNPM_HOME="/pnpm"
|
|||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
# Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead.
|
# Skip corepack (it fetches pnpm from npmjs/Cloudflare). Install from mirror instead.
|
||||||
RUN npm install -g pnpm@9.0.0 turbo@2.10.12 \
|
# Pin major only — Iranian mirrors often lag behind exact patch versions (e.g. 2.10.12).
|
||||||
|
RUN npm install -g pnpm@9 turbo@2 \
|
||||||
&& printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc
|
&& printf 'registry=%s\n' "${NPM_REGISTRY}" > /root/.npmrc
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|||||||
Reference in New Issue
Block a user