Skip to content

fix(docker): exclude compose/profile runtime state from build context - #15263

Closed
flobo3 wants to merge 1 commit into
NousResearch:mainfrom
flobo3:fix/dockerignore-compose-runtime
Closed

fix(docker): exclude compose/profile runtime state from build context#15263
flobo3 wants to merge 1 commit into
NousResearch:mainfrom
flobo3:fix/dockerignore-compose-runtime

Conversation

@flobo3

@flobo3 flobo3 commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Add hermes-config/ and runtime/ to .dockerignore to prevent local compose/profile runtime state from leaking into Docker build context.

Fixes #15221

Why

Compose/profile setups keep runtime state (config, auth, session data) outside the image via bind mounts. Including these directories in the build context causes:

  • Slower builds
  • Potential secret/local data exposure
  • Rebuild failures when Docker can't read container-runtime-owned files

Changes

  • Added hermes-config/ and runtime/ to .dockerignore

Testing

  • Existing source files required for image builds are unaffected
  • Safe for users who don't use those directories (no-op)

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have area/docker Docker image, Compose, packaging labels Apr 24, 2026
@teknium1

teknium1 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Salvaged via #19626 onto current main - your commit authorship was preserved. Thanks!

@teknium1 teknium1 closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docker Docker image, Compose, packaging P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude compose/profile runtime state from Docker build context

3 participants