Skip to content

Commit 96bcf8d

Browse files
fix(docker): allow pruned lockfile normalization
1 parent 3de31cb commit 96bcf8d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

docker/app.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,13 @@ COPY --from=pruner /app/bun.lock ./bun.lock
7373
# resolved it from the registry at build time, which pulled a different major
7474
# (13.x vs the pinned 12.4.0) and bypassed the `minimumReleaseAge` supply-chain
7575
# gate in bunfig.toml on every production image build.
76+
#
77+
# This stage contains only the pruned workspace manifests, while the full lockfile
78+
# still describes every workspace. Bun must be allowed to normalize that lockfile
79+
# to the pruned graph; the full-repository CI install owns frozen-lockfile validation.
7680
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
7781
--mount=type=cache,id=npm-cache,target=/root/.npm \
78-
HUSKY=0 bun install --frozen-lockfile --ignore-scripts --linker=hoisted && \
82+
HUSKY=0 bun install --ignore-scripts --linker=hoisted && \
7983
cd node_modules/isolated-vm && JOBS=4 /app/node_modules/.bin/node-gyp rebuild --release
8084

8185
# ========================================

docker/db.Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ COPY packages/logger/package.json ./packages/logger/package.json
1717
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
1818
COPY packages/utils/package.json ./packages/utils/package.json
1919

20-
# Install dependencies with cache mount for faster builds
20+
# Install dependencies with cache mount for faster builds. This stage contains
21+
# only the migration workspace manifests, so Bun must normalize the full root
22+
# lockfile to that subset; full-repository CI owns frozen-lockfile validation.
2123
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
22-
bun install --frozen-lockfile --ignore-scripts
24+
bun install --ignore-scripts
2325

2426
# ========================================
2527
# Runner Stage: Production Environment

0 commit comments

Comments
 (0)