mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 16:01:05 +00:00
feat: switch foundry backend from Bun to Node.js
- Replace Bun.serve() with @hono/node-server (already a dependency) - Replace Bun-specific debug APIs (Bun.gc, Bun.heapStats, Bun.generateHeapSnapshot) with Node.js equivalents (globalThis.gc) - Update all three Dockerfiles from oven/bun base images to node:22-bookworm-slim - Remove @types/bun devDependency - Update package.json scripts to use node/npx instead of bun Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
62d56fae64
commit
bc872da6f2
6 changed files with 37 additions and 86 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# syntax=docker/dockerfile:1.7
|
||||
|
||||
FROM oven/bun:1.3
|
||||
FROM node:22-bookworm-slim
|
||||
|
||||
ARG SANDBOX_AGENT_VERSION=0.3.0
|
||||
|
||||
|
|
@ -10,8 +10,6 @@ RUN apt-get update \
|
|||
curl \
|
||||
git \
|
||||
gh \
|
||||
nodejs \
|
||||
npm \
|
||||
openssh-client \
|
||||
&& npm install -g pnpm@10.28.2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
|
@ -33,4 +31,4 @@ RUN pnpm --filter @sandbox-agent/foundry-shared build
|
|||
RUN pnpm --filter @sandbox-agent/foundry-client build
|
||||
RUN pnpm --filter @sandbox-agent/foundry-backend build
|
||||
|
||||
CMD ["bash", "-lc", "git config --global --add safe.directory /workspace/quebec >/dev/null 2>&1 || true; exec bun packages/backend/dist/index.js start --host 0.0.0.0 --port 7841"]
|
||||
CMD ["bash", "-lc", "git config --global --add safe.directory /workspace/quebec >/dev/null 2>&1 || true; exec node packages/backend/dist/index.js start --host 0.0.0.0 --port 7841"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue