do a full workspace install in dockerfile
This commit is contained in:
@@ -41,15 +41,11 @@ COPY packages/stripe-sync/package.json packages/stripe-sync/
|
||||
# install step doesn't fail before the real source is copied.
|
||||
RUN mkdir -p scripts && touch scripts/preload-env.ts
|
||||
|
||||
# Install only runtime workspaces; --no-save keeps this layer from mutating bun.lock.
|
||||
# Frozen filtered installs fail even immediately after Bun regenerates the lockfile.
|
||||
# Install the full workspace because runtime source imports cross package boundaries.
|
||||
# --no-save keeps this image layer from mutating bun.lock.
|
||||
RUN --mount=type=cache,target=/root/.bun/install/cache \
|
||||
bun install --ignore-scripts --no-save \
|
||||
--minimum-release-age 0 \
|
||||
--filter @autumn/server \
|
||||
--filter @autumn/leaf \
|
||||
--filter autumn-js \
|
||||
--filter @useautumn/sdk
|
||||
--minimum-release-age 0
|
||||
|
||||
FROM oven/bun:1.3.10
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user