somratpro commited on
Commit
099d3ad
·
1 Parent(s): f683ded

fix: remove venv from PATH and symlink hermes CLI to .local/bin for terminal compatibility

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -2
  2. start.sh +5 -0
Dockerfile CHANGED
@@ -67,8 +67,7 @@ PY
67
  ENV HERMES_HOME=/opt/data \
68
  HUGGINGMES_APP_DIR=/opt/huggingmes \
69
  HERMES_AGENT_VERSION=${HERMES_AGENT_VERSION} \
70
- PYTHONUNBUFFERED=1 \
71
- PATH="/opt/hermes/.venv/bin:${PATH}"
72
 
73
  EXPOSE 7861
74
 
 
67
  ENV HERMES_HOME=/opt/data \
68
  HUGGINGMES_APP_DIR=/opt/huggingmes \
69
  HERMES_AGENT_VERSION=${HERMES_AGENT_VERSION} \
70
+ PYTHONUNBUFFERED=1
 
71
 
72
  EXPOSE 7861
73
 
start.sh CHANGED
@@ -48,6 +48,11 @@ fi
48
  # ── Setup directories ──
49
  mkdir -p "$HERMES_HOME"/{cron,sessions,logs,hooks,memories,skills,skins,plans,workspace,home,plugins}
50
 
 
 
 
 
 
51
  # Redirect Hermes plugin dir into volume so plugins survive container restarts
52
  if [ ! -L "${HOME}/.hermes/plugins" ]; then
53
  mkdir -p "${HOME}/.hermes"
 
48
  # ── Setup directories ──
49
  mkdir -p "$HERMES_HOME"/{cron,sessions,logs,hooks,memories,skills,skins,plans,workspace,home,plugins}
50
 
51
+ # Expose hermes CLI in ~/.local/bin so login shells (terminal backend) find it.
52
+ # Base image PATH includes /opt/data/.local/bin but hermes lives in the venv.
53
+ mkdir -p "$HERMES_HOME/.local/bin"
54
+ ln -sfn /opt/hermes/.venv/bin/hermes "$HERMES_HOME/.local/bin/hermes"
55
+
56
  # Redirect Hermes plugin dir into volume so plugins survive container restarts
57
  if [ ! -L "${HOME}/.hermes/plugins" ]; then
58
  mkdir -p "${HOME}/.hermes"