Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/app.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ COPY --from=pruner /app/bun.lock ./bun.lock
# resolved it from the registry at build time, which pulled a different major
# (13.x vs the pinned 12.4.0) and bypassed the `minimumReleaseAge` supply-chain
# gate in bunfig.toml on every production image build.
#
# This stage contains only the pruned workspace manifests, while the full lockfile
# still describes every workspace. Bun must be allowed to normalize that lockfile
# to the pruned graph; the full-repository CI install owns frozen-lockfile validation.
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
--mount=type=cache,id=npm-cache,target=/root/.npm \
HUSKY=0 bun install --frozen-lockfile --ignore-scripts --linker=hoisted && \
HUSKY=0 bun install --ignore-scripts --linker=hoisted && \
cd node_modules/isolated-vm && JOBS=4 /app/node_modules/.bin/node-gyp rebuild --release

# ========================================
Expand Down
6 changes: 4 additions & 2 deletions docker/db.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ COPY packages/logger/package.json ./packages/logger/package.json
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
COPY packages/utils/package.json ./packages/utils/package.json

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

# ========================================
# Runner Stage: Production Environment
Expand Down
Loading