Spaces:
Paused
Paused
feat: give hermes user passwordless sudo
Browse filesInstall sudo and grant hermes ALL=(ALL) NOPASSWD: ALL so the agent
can run privileged commands (apt install, service management, file
operations) without a password prompt.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 unmodified lines9101112131415 unmodified lines303132333435368 unmodified linesca-certificates \curl \jq \python3 \python3-venv \python3-pip \15 unmodified linesfonts-liberation \fonts-noto-color-emoji \&& rm -rf /var/lib/apt/lists/* \&& uv pip install --python /opt/hermes/.venv/bin/python --no-cache-dir huggingface_hub hf_transfer jupyterlabCOPY --chown=hermes:hermes start.sh /opt/huggingmes/start.shCOPY --chown=hermes:hermes health-server.js /opt/huggingmes/health-server.js8 unmodified lines910111213141515 unmodified lines313233343536373839408 unmodified linesca-certificates \curl \jq \sudo \python3 \python3-venv \python3-pip \15 unmodified linesfonts-liberation \fonts-noto-color-emoji \&& rm -rf /var/lib/apt/lists/* \&& uv pip install --python /opt/hermes/.venv/bin/python --no-cache-dir huggingface_hub hf_transfer jupyterlab \&& printf 'hermes ALL=(ALL) NOPASSWD: ALL\n' > /etc/sudoers.d/hermes \&& chmod 0440 /etc/sudoers.d/hermes \&& visudo -cf /etc/sudoers.d/hermesCOPY --chown=hermes:hermes start.sh /opt/huggingmes/start.shCOPY --chown=hermes:hermes health-server.js /opt/huggingmes/health-server.js
Dockerfile+5-1