Skip to content

Commit 1798d2e

Browse files
committed
fix(docker): install devDeps in builder stage for build
1 parent 3afcad2 commit 1798d2e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/app.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ COPY packages/workflow-authz/package.json ./packages/workflow-authz/package.json
8080
COPY packages/workflow-persistence/package.json ./packages/workflow-persistence/package.json
8181
COPY packages/workflow-types/package.json ./packages/workflow-types/package.json
8282

83+
# Install full dependency set. The deps stage installed --omit=dev for the
84+
# runtime image; the build needs devDeps like tailwindcss/postcss. Placed
85+
# before source copy so it stays cached on source-only changes.
86+
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
87+
HUSKY=0 bun install --ignore-scripts --linker=hoisted
88+
8389
# Copy workspace configuration files (needed for turbo)
8490
COPY apps/sim/next.config.ts ./apps/sim/next.config.ts
8591
COPY apps/sim/tsconfig.json ./apps/sim/tsconfig.json

0 commit comments

Comments
 (0)