Merge pull request 'fix: [nomad-step-5] S5-fix-6 — chat Dockerfile must bake Claude CLI (same as agents #984) (#1016)' (#1017) from fix/issue-1016 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
a35d6e7848
1 changed files with 7 additions and 5 deletions
|
|
@ -1,20 +1,22 @@
|
||||||
# disinto-chat — minimal HTTP backend for Claude chat UI
|
# disinto-chat — minimal HTTP backend for Claude chat UI
|
||||||
#
|
#
|
||||||
# Small Debian slim base with Python runtime.
|
# Small Debian slim base with Python runtime and Node.js.
|
||||||
# Chosen for simplicity and small image size (~100MB).
|
# Chosen for simplicity and small image size (~100MB).
|
||||||
#
|
#
|
||||||
# Image size: ~100MB (well under the 200MB ceiling)
|
# Image size: ~100MB (well under the 200MB ceiling)
|
||||||
#
|
#
|
||||||
# The claude binary is mounted from the host at runtime via docker-compose,
|
# Claude CLI is baked into the image — same pattern as the agents container.
|
||||||
# not baked into the image — same pattern as the agents container.
|
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
# Install Python (no build-time network access needed)
|
# Install Node.js (required for Claude CLI) and Python
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
python3 \
|
nodejs npm python3 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install Claude Code CLI — chat backend runtime
|
||||||
|
RUN npm install -g @anthropic-ai/claude-code@2.1.84
|
||||||
|
|
||||||
# Non-root user — fixed UID 10001 for sandbox hardening (#706)
|
# Non-root user — fixed UID 10001 for sandbox hardening (#706)
|
||||||
RUN useradd -m -u 10001 -s /bin/bash chat
|
RUN useradd -m -u 10001 -s /bin/bash chat
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue