chore: workaround for npm registry key change for Dockerfile

This commit is contained in:
TAKAHASHI Shuuji 2025-02-03 12:48:39 +09:00
parent 12273eae1d
commit 835ed51da6

View file

@ -6,7 +6,10 @@ WORKDIR /elk
FROM base AS builder FROM base AS builder
# Prepare pnpm https://pnpm.io/installation#using-corepack # Prepare pnpm https://pnpm.io/installation#using-corepack
RUN corepack enable # workaround for npm registry key change
# ref. `pnpm@10.1.0` / `pnpm@9.15.4` cannot be installed due to key id mismatch · Issue #612 · nodejs/corepack
# - https://github.com/nodejs/corepack/issues/612#issuecomment-2629496091
RUN npm i -g corepack@latest && corepack enable
# Prepare deps # Prepare deps
RUN apk update RUN apk update