Skip to content

Commit cd8aa33

Browse files
committed
fix: build workspace packages in Dockerfile before starting app
1 parent 18623b4 commit cd8aa33

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/hono-example/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ WORKDIR /app
77
COPY . .
88

99
# Install dependencies for the entire monorepo
10-
# Do not use --frozen-lockfile to avoid lockfile version mismatch errors
1110
RUN bun install
1211

12+
# Build workspace packages in dependency order:
13+
# 1. engine (no internal deps)
14+
# 2. adapter-hono and plugin-cache (both depend on engine)
15+
RUN bun run --cwd packages/engine build
16+
RUN bun run --cwd packages/plugin-cache build
17+
RUN bun run --cwd packages/adapter-hono build
18+
1319
# Set environment to production
1420
ENV NODE_ENV=production
1521

0 commit comments

Comments
 (0)