mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-04 00:12:31 +00:00
Merge pull request #1169 from vrtmrz/fix/cli-docker-runtime-dependencies
Avoid resolving CLI development peers in Docker runtime
This commit is contained in:
@@ -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.
|
||||||
COPY src/apps/cli/package.json ./package.json
|
# npm --omit=dev omits them from disk, but still resolves their peer graph.
|
||||||
RUN npm install --omit=dev
|
COPY src/apps/cli/package.json ./package.json
|
||||||
|
RUN npm pkg delete devDependencies \
|
||||||
|
&& npm install --omit=dev
|
||||||
|
|
||||||
# ─────────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────────
|
||||||
# Stage 3 — runtime
|
# Stage 3 — runtime
|
||||||
|
|||||||
Reference in New Issue
Block a user