-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 1.12 KB
/
Copy pathDockerfile
File metadata and controls
34 lines (26 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# syntax=docker/dockerfile:1.7
# =============================================================================
# typescript — streaming chat with tool calls
# =============================================================================
# Base: node:22-alpine. Installs `@agentruntimecontrolprotocol/sdk@${ARCP_SDK_VERSION}`.
# Two-stage build: tsx-only image (no compile step for src/) keeps deps thin.
# -----------------------------------------------------------------------------
FROM node:22-alpine AS base
ARG ARCP_SDK_VERSION=latest
ENV NODE_ENV=production \
NPM_CONFIG_FUND=false \
NPM_CONFIG_AUDIT=false \
NPM_CONFIG_UPDATE_NOTIFIER=false
WORKDIR /app
RUN apk add --no-cache tini ca-certificates
COPY package.json tsconfig.json ./
# Install ARCP SDK at the requested version. `latest` resolves the newest
# release on npm at build time. tsx runs src/main.ts directly (no tsc step).
RUN npm install --no-save \
"@agentruntimecontrolprotocol/sdk@${ARCP_SDK_VERSION}" \
tsx@latest \
ws@latest \
undici@latest
COPY src/ ./src/
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["npx", "tsx", "src/main.ts"]