Merge pull request #1169 from vrtmrz/fix/cli-docker-runtime-dependencies

Avoid resolving CLI development peers in Docker runtime
This commit is contained in:
vorotamoroz
2026-09-05 01:52:22 +09:00
committed by GitHub
+4 -2
View File
@@ -82,9 +82,11 @@ RUN apt-get update \
WORKDIR /deps WORKDIR /deps
# package.json lists only the packages that the CLI requires # Remove build-only dependencies before resolving the standalone runtime tree.
# npm --omit=dev omits them from disk, but still resolves their peer graph.
COPY src/apps/cli/package.json ./package.json COPY src/apps/cli/package.json ./package.json
RUN npm install --omit=dev RUN npm pkg delete devDependencies \
&& npm install --omit=dev
# ───────────────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────────────
# Stage 3 — runtime # Stage 3 — runtime