Fix Sharp loading in Docker with hoisted Bun dependencies

This commit is contained in:
2026-09-10 12:04:36 -04:00
parent a7541104ef
commit a12d239c49
+3 -1
View File
@@ -7,7 +7,9 @@ COPY packages/contracts/package.json packages/contracts/package.json
COPY packages/database/package.json packages/database/package.json
COPY packages/email/package.json packages/email/package.json
COPY packages/storage/package.json packages/storage/package.json
RUN bun install --frozen-lockfile --network-concurrency 8
# Keep native optional dependencies beside their packages for Next's external
# module loading and standalone tracing (including Sharp's Linux binaries).
RUN bun install --frozen-lockfile --linker hoisted --network-concurrency 8
COPY . .
FROM source AS builder