fix: feat: merge chat container into edge — run chat server inside edge container with full permissions (reverts sandbox from #706) (#1083)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
398a7398a9
commit
bcdf33e68a
7 changed files with 48 additions and 142 deletions
|
|
@ -1,6 +1,12 @@
|
|||
FROM caddy:latest
|
||||
RUN apk add --no-cache bash jq curl git docker-cli python3 openssh-client autossh
|
||||
COPY entrypoint-edge.sh /usr/local/bin/entrypoint-edge.sh
|
||||
RUN apk add --no-cache bash jq curl git docker-cli python3 openssh-client autossh \
|
||||
nodejs npm
|
||||
# Claude Code CLI — chat backend runtime (merged from docker/chat, #1083)
|
||||
RUN npm install -g @anthropic-ai/claude-code@2.1.84
|
||||
COPY docker/edge/entrypoint-edge.sh /usr/local/bin/entrypoint-edge.sh
|
||||
# Chat server and UI (merged from docker/chat into edge, #1083)
|
||||
COPY docker/chat/server.py /usr/local/bin/chat-server.py
|
||||
COPY docker/chat/ui/ /var/chat/ui/
|
||||
|
||||
VOLUME /data
|
||||
|
||||
|
|
|
|||
|
|
@ -244,6 +244,9 @@ else
|
|||
echo "edge: collect-engagement cron skipped (EDGE_ENGAGEMENT_READY=0)" >&2
|
||||
fi
|
||||
|
||||
# Start chat server in background (#1083 — merged from docker/chat into edge)
|
||||
(python3 /usr/local/bin/chat-server.py 2>&1 | tee -a /opt/disinto-logs/chat.log) &
|
||||
|
||||
# Nomad template renders Caddyfile to /local/Caddyfile via service discovery;
|
||||
# copy it into the expected location if present (compose uses the mounted path).
|
||||
if [ -f /local/Caddyfile ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue