mirror of
https://github.com/domfelipe/hermes-agent-custom.git
synced 2026-08-07 05:16:41 +00:00
feat: add skills_api patch + apply_patch infra
This commit is contained in:
parent
21bd3ae5cc
commit
1f2fc5f5a9
4 changed files with 140 additions and 2 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -2,12 +2,21 @@ FROM nousresearch/hermes-agent:latest
|
|||
|
||||
USER root
|
||||
|
||||
RUN mkdir -p /opt/data/.hermes
|
||||
RUN mkdir -p /opt/data/.hermes /opt/data/.hermes/skills /opt/hermes-custom
|
||||
|
||||
# Config + SOUL default
|
||||
RUN printf 'model:\n provider: ollama-cloud\n default: gemma4:31b-cloud\n' > /opt/data/.hermes/config.yaml
|
||||
|
||||
RUN printf 'Você é Mika, uma assistente pessoal de IA criada pela DomCo.' > /opt/data/.hermes/SOUL.md
|
||||
|
||||
# Patches
|
||||
COPY patches/skills_api.py /opt/hermes-custom/skills_api.py
|
||||
COPY patches/apply_patch.py /opt/hermes-custom/apply_patch.py
|
||||
|
||||
# Disponibiliza skills_api no PYTHONPATH e injeta o include_router no api_server.py
|
||||
ENV PYTHONPATH="/opt/hermes-custom:${PYTHONPATH}"
|
||||
RUN python3 /opt/hermes-custom/apply_patch.py /opt/hermes/gateway/platforms/api_server.py
|
||||
|
||||
# Entrypoint custom
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue