mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(docker): exclude runtime data/ from build context
The Dockerfile declares VOLUME /opt/data and the published docker-compose flow bind-mounts ./data:/opt/data for runtime state. Because .dockerignore did not list data/, any file the container writes under /opt/data leaks back into the build context on the next `docker compose build`. This becomes a hard failure when the container writes a dangling symlink there — e.g. PulseAudio's XDG runtime entry (data/.config/pulse/<host>-runtime -> /tmp/pulse-*) whose target only exists inside the container. Docker's tar packer cannot resolve the broken symlink on the host and aborts context load with `invalid file request`. Excluding data/ keeps build context clean, shrinks the context tarball (logs/, sessions/, memories/ no longer shipped), and matches the intent already expressed in .gitignore.
This commit is contained in:
parent
eda5ae5a5e
commit
85caa5d447
1 changed files with 3 additions and 0 deletions
|
|
@ -14,3 +14,6 @@ node_modules
|
|||
.env
|
||||
|
||||
*.md
|
||||
|
||||
# Runtime data (bind-mounted at /opt/data; must not leak into build context)
|
||||
data/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue