Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"@vscode/ripgrep": "1.18.0",
"arktype": "catalog:",
"better-auth": "catalog:",
"drizzle-kit": "0.31.9",
"drizzle-orm": "catalog:",
"hono": "catalog:",
"hono-openapi": "1.5.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "5.2.0",
"typescript": "5.9.3",
"vite": "6.4.3"
"vite": "6.4.5"
}
}
9 changes: 3 additions & 6 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 22 additions & 12 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG BUN_IMAGE=oven/bun:1.4.4@sha256:1d22548f177f4ff38e0c15baa3c2c46c6c2060ba2d1bc573bb4720b407548f1d

FROM ${BUN_IMAGE} AS install
FROM ${BUN_IMAGE} AS source
WORKDIR /app
COPY package.json bun.lock tsconfig.json ./
COPY patches ./patches
Expand All @@ -10,8 +10,18 @@ COPY workflows ./workflows
COPY vendor/interchange/package.json vendor/interchange/tsconfig.json vendor/interchange/tsconfig.base.json vendor/interchange/bunfig.toml ./vendor/interchange/
COPY vendor/interchange/packages ./vendor/interchange/packages
COPY vendor/interchange/apps/sidecar ./vendor/interchange/apps/sidecar

FROM source AS install
RUN bun install --frozen-lockfile

# The hub and sidecar run on production dependencies only; build and dev tools stay in install.
# better-auth lists drizzle-kit as an optional peer, so a production install still links it and
# its esbuild binaries. Only migration generation uses them, and nothing at runtime imports them.
FROM source AS deps
RUN bun install --frozen-lockfile --production \
&& rm -rf node_modules/.bun/drizzle-kit@* node_modules/.bun/esbuild@* \
node_modules/.bun/esbuild-register@* node_modules/.bun/@esbuild+* node_modules/.bun/@esbuild-kit+*

FROM install AS web
RUN bun run --cwd apps/web build

Expand Down Expand Up @@ -52,11 +62,11 @@ RUN apt-get update \
# so this image keeps the hub's /app layout.
FROM runtime AS sidecar
WORKDIR /app
COPY --from=install --chown=bun:bun /app/package.json ./
COPY --from=install --chown=bun:bun /app/node_modules ./node_modules
COPY --from=install --chown=bun:bun /app/apps/hub ./apps/hub
COPY --from=install --chown=bun:bun /app/packages ./packages
COPY --from=install --chown=bun:bun /app/vendor/interchange ./vendor/interchange
COPY --from=deps --chown=bun:bun /app/package.json ./
COPY --from=deps --chown=bun:bun /app/node_modules ./node_modules
COPY --from=deps --chown=bun:bun /app/apps/hub ./apps/hub
COPY --from=deps --chown=bun:bun /app/packages ./packages
COPY --from=deps --chown=bun:bun /app/vendor/interchange ./vendor/interchange
RUN mkdir -p /data && chown bun:bun /data
USER bun
WORKDIR /app/vendor/interchange
Expand All @@ -65,13 +75,13 @@ CMD ["bun", "--no-env-file", "--conditions=intx-src", "apps/sidecar/src/index.ts

FROM runtime AS hub
WORKDIR /app
COPY --from=install --chown=bun:bun /app/package.json /app/bun.lock /app/tsconfig.json ./
COPY --from=install --chown=bun:bun /app/node_modules ./node_modules
COPY --from=install --chown=bun:bun /app/apps/hub ./apps/hub
COPY --from=deps --chown=bun:bun /app/package.json /app/bun.lock /app/tsconfig.json ./
COPY --from=deps --chown=bun:bun /app/node_modules ./node_modules
COPY --from=deps --chown=bun:bun /app/apps/hub ./apps/hub
COPY --from=web --chown=bun:bun /app/apps/web/dist ./apps/web/dist
COPY --from=install --chown=bun:bun /app/packages ./packages
COPY --from=install --chown=bun:bun /app/workflows ./workflows
COPY --from=install --chown=bun:bun /app/vendor/interchange ./vendor/interchange
COPY --from=deps --chown=bun:bun /app/packages ./packages
COPY --from=deps --chown=bun:bun /app/workflows ./workflows
COPY --from=deps --chown=bun:bun /app/vendor/interchange ./vendor/interchange
RUN mkdir -p /app/data/hub && chown -R bun:bun /app/data
USER bun
ENV HOST=0.0.0.0 PORT=8000 HUB_DATA_DIR=/app/data/hub HUB_WEB_DIR=/app/apps/web/dist
Expand Down
4 changes: 1 addition & 3 deletions workflows/coder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
"./assets": "./src/assets.ts"
},
"dependencies": {
"@corbits/react-ui": "0.4.0",
"@intx/agent": "workspace:*",
"@intx/workflow": "workspace:*"
},
"devDependencies": {
"@corbits/react-ui": "0.4.0"
}
}