Fix Sharp loading in Docker with hoisted Bun dependencies
This commit is contained in:
+3
-1
@@ -7,7 +7,9 @@ COPY packages/contracts/package.json packages/contracts/package.json
|
|||||||
COPY packages/database/package.json packages/database/package.json
|
COPY packages/database/package.json packages/database/package.json
|
||||||
COPY packages/email/package.json packages/email/package.json
|
COPY packages/email/package.json packages/email/package.json
|
||||||
COPY packages/storage/package.json packages/storage/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 . .
|
COPY . .
|
||||||
|
|
||||||
FROM source AS builder
|
FROM source AS builder
|
||||||
|
|||||||
Reference in New Issue
Block a user