Files
deepagentsjs/examples/async-subagent-server/Dockerfile
T
dependabot[bot] 16c8d14307 build(deps): bump node from 22-alpine to 26-alpine in /examples/async-subagent-server in the major-deps-updates-docker group (#683)
Bumps the major-deps-updates-docker group in
/examples/async-subagent-server with 1 update: node.

Updates `node` from 22-alpine to 26-alpine


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=node&package-manager=docker&previous-version=22-alpine&new-version=26-alpine)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-19 17:04:25 -07:00

38 lines
1.2 KiB
Docker

# Build from the repo root:
# docker build -f examples/async-subagent-server/Dockerfile -t async-subagent-server .
#
# Run:
# docker run -p 2024:2024 \
# -e ANTHROPIC_API_KEY=your-key \
# -e TAVILY_API_KEY=your-key \
# async-subagent-server
FROM node:26-alpine AS base
RUN corepack enable && corepack prepare pnpm@latest --activate
# Install dependencies — only copy what's needed for the install step
# so Docker can cache this layer independently of source changes.
FROM base AS deps
WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY libs/deepagents/package.json ./libs/deepagents/
COPY examples/package.json ./examples/
RUN pnpm install --frozen-lockfile --shamefully-hoist
# Final image — copy only what the server needs at runtime.
FROM base AS runner
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY libs/deepagents/dist ./libs/deepagents/dist
COPY libs/deepagents/package.json ./libs/deepagents/package.json
COPY examples/package.json ./examples/package.json
COPY examples/async-subagent-server/ ./examples/async-subagent-server/
WORKDIR /app/examples/async-subagent-server
ENV PORT=2024
EXPOSE 2024
CMD ["/app/node_modules/.bin/tsx", "server.ts"]