Use npm install in studio Docker stage to avoid lock file strictness
npm ci fails on alpine when lock file was generated on a different npm version. --legacy-peer-deps handles the styled-components peer dep too. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0596e6db47
commit
d82da193f3
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ RUN npm ci
|
|||
# ── 2. Install studio deps ────────────────────────────────────────────────────
|
||||
FROM base AS studio-deps
|
||||
COPY studio/package.json studio/package-lock.json* ./
|
||||
RUN npm ci
|
||||
RUN npm install --legacy-peer-deps
|
||||
|
||||
# ── 3. Build Sanity Studio ────────────────────────────────────────────────────
|
||||
FROM base AS studio-build
|
||||
|
|
|
|||
Loading…
Reference in a new issue