diff --git a/apps/admin/Dockerfile.admin b/apps/admin/Dockerfile.admin index 085c8731d11..3ee1d73bf98 100644 --- a/apps/admin/Dockerfile.admin +++ b/apps/admin/Dockerfile.admin @@ -13,7 +13,7 @@ RUN corepack enable pnpm FROM base AS builder -RUN corepack prepare pnpm@10.30.2 --activate && pnpm add -g turbo@2.9.4 +RUN pnpm add -g turbo@2.9.4 COPY . . @@ -66,8 +66,6 @@ COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml COPY --from=builder /app/out/full/ . COPY turbo.json turbo.json -RUN corepack prepare pnpm@10.30.2 --activate - # Fetch dependencies to cache store, then install offline with dev deps RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store --prod=false diff --git a/apps/live/Dockerfile.live b/apps/live/Dockerfile.live index 56e77db5e43..864bd0d17e5 100644 --- a/apps/live/Dockerfile.live +++ b/apps/live/Dockerfile.live @@ -16,7 +16,7 @@ RUN apk add --no-cache libc6-compat # Set working directory WORKDIR /app ARG TURBO_VERSION=2.9.4 -RUN corepack prepare pnpm@10.30.2 --activate && pnpm add -g turbo@${TURBO_VERSION} +RUN corepack enable pnpm && pnpm add -g turbo@${TURBO_VERSION} COPY . . RUN turbo prune --scope=live --docker @@ -33,7 +33,7 @@ WORKDIR /app COPY .gitignore .gitignore COPY --from=builder /app/out/json/ . COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml -RUN corepack prepare pnpm@10.30.2 --activate +RUN corepack enable pnpm # Copy full directory structure before fetch to ensure all package.json files are available COPY --from=builder /app/out/full/ . diff --git a/apps/space/Dockerfile.space b/apps/space/Dockerfile.space index 90046db7944..39a05176aeb 100644 --- a/apps/space/Dockerfile.space +++ b/apps/space/Dockerfile.space @@ -13,7 +13,7 @@ RUN corepack enable pnpm FROM base AS builder -RUN corepack prepare pnpm@10.30.2 --activate && pnpm add -g turbo@2.9.4 +RUN pnpm add -g turbo@2.9.4 COPY . . @@ -67,8 +67,6 @@ COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml COPY --from=builder /app/out/full/ . COPY turbo.json turbo.json -RUN corepack prepare pnpm@10.30.2 --activate - # Fetch dependencies to cache store, then install offline with dev deps RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store pnpm fetch --store-dir=/pnpm/store RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store CI=true pnpm install --offline --frozen-lockfile --store-dir=/pnpm/store --prod=false diff --git a/apps/web/Dockerfile.web b/apps/web/Dockerfile.web index 1d15e6117a8..4a40054ae58 100644 --- a/apps/web/Dockerfile.web +++ b/apps/web/Dockerfile.web @@ -15,7 +15,7 @@ RUN apk add --no-cache libc6-compat WORKDIR /app ARG TURBO_VERSION=2.9.4 -RUN corepack prepare pnpm@10.30.2 --activate && pnpm add -g turbo@${TURBO_VERSION} +RUN corepack enable pnpm && pnpm add -g turbo@${TURBO_VERSION} COPY . . RUN turbo prune --scope=web --docker