Spaces:
Running
Running
| FROM ghcr.io/nesquena/hermes-webui:latest | |
| USER root | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ARG HTTP_PROXY | |
| ARG HTTPS_PROXY | |
| ARG NO_PROXY | |
| ARG http_proxy | |
| ARG https_proxy | |
| ARG no_proxy | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| ca-certificates \ | |
| git \ | |
| ripgrep \ | |
| sudo \ | |
| && python3 -m pip install --no-cache-dir huggingface_hub \ | |
| && git clone --depth=1 https://github.com/NousResearch/hermes-agent.git /opt/hermes \ | |
| && mkdir -p /data/.hermes /data/.hermes/webui-mvp /workspace \ | |
| && rm -rf /home/hermeswebui/.hermes \ | |
| && ln -s /data/.hermes /home/hermeswebui/.hermes \ | |
| && chown -R hermeswebui:hermeswebui /data /workspace /opt/hermes \ | |
| && chown -h hermeswebui:hermeswebui /home/hermeswebui/.hermes \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY --chmod=755 space-entrypoint.sh /space-entrypoint.sh | |
| COPY --chmod=755 scripts/hermes-state-backup.py /usr/local/bin/hermes-state-backup | |
| COPY --chmod=755 scripts/hermes-backup-loop.sh /usr/local/bin/hermes-backup-loop | |
| ENV HERMES_HOME=/home/hermeswebui/.hermes \ | |
| HERMES_CONFIG_PATH=/home/hermeswebui/.hermes/config.yaml \ | |
| HERMES_WEBUI_STATE_DIR=/home/hermeswebui/.hermes/webui-mvp \ | |
| HERMES_WEBUI_DEFAULT_WORKSPACE=/workspace \ | |
| HERMES_WEBUI_HOST=0.0.0.0 \ | |
| HERMES_WEBUI_PORT=8787 \ | |
| HERMES_EXEC_ASK=1 \ | |
| WANTED_UID=1024 \ | |
| WANTED_GID=1024 | |
| EXPOSE 8787 | |
| CMD ["/space-entrypoint.sh"] | |