From 2ad9ac53f804c90df5210c4cbb99a482b0afcd0c Mon Sep 17 00:00:00 2001 From: tonym Date: Fri, 10 Jul 2026 23:05:37 -0500 Subject: [PATCH] feat(build): image builds auto-install latest @otm/account-panel Packument ADD cache-busts only on a publish; pin stays as the dev floor. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01WqSCBQyyBbgWRXMR5qo3ZK --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0be78c6..02c4d85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,17 @@ COPY package.json package-lock.json* ./ COPY prisma ./prisma RUN npm ci +# Workspace-style freshness for the shared OTM UI package: every image build +# installs the latest published @otm/account-panel on top of the lockfile, so +# rebuilds pick up package releases without needing a pin-bump commit (the +# package.json pin is the dev-time floor). The ADD pulls the registry +# packument, which only changes on a publish — so this layer stays cached +# between publishes and busts exactly when a new version exists. Moonbase +# builds on the NAS itself, so the LAN host is always reachable. +COPY .npmrc ./ +ADD http://192.168.0.5:3022/api/packages/tonym/npm/@otm/account-panel /tmp/otm-account-panel.packument.json +RUN npm install --no-save --no-audit --no-fund @otm/account-panel@latest + # ---- build ---- FROM node:20-bookworm-slim AS build WORKDIR /app