mirror of
https://github.com/domfelipe/hermes-agent-custom.git
synced 2026-08-07 06:16:39 +00:00
Update Dockerfile
This commit is contained in:
parent
ff276f8d23
commit
ece4b0a84a
1 changed files with 14 additions and 9 deletions
21
Dockerfile
21
Dockerfile
|
|
@ -1,22 +1,27 @@
|
|||
FROM ghcr.io/nousresearch/hermes:latest
|
||||
# Estágio 1: builda o Hermes a partir do código-fonte oficial
|
||||
FROM python:3.12-slim AS hermes-base
|
||||
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||
RUN git clone --depth 1 https://github.com/NousResearch/hermes-agent.git /opt/hermes
|
||||
WORKDIR /opt/hermes
|
||||
RUN pip install --no-cache-dir -e .
|
||||
|
||||
# ===== Suas customizações Mika =====
|
||||
FROM hermes-base
|
||||
|
||||
# Instala aiohttp para o servidor proxy + skills_api
|
||||
RUN pip install --no-cache-dir aiohttp
|
||||
|
||||
# Copia os arquivos customizados
|
||||
# Skills API + entrypoint
|
||||
COPY patches/skills_api.py /opt/hermes-custom/skills_api.py
|
||||
COPY entrypoint.sh /opt/hermes-custom/entrypoint.sh
|
||||
RUN chmod +x /opt/hermes-custom/entrypoint.sh
|
||||
|
||||
# Garante que o Python encontra os módulos do Hermes
|
||||
ENV PYTHONPATH=/opt/hermes:/opt/hermes-custom
|
||||
ENV PYTHONPATH=/opt/hermes-custom:/opt/hermes
|
||||
|
||||
# Config + SOUL default embutidos na imagem
|
||||
# Config + SOUL default
|
||||
RUN mkdir -p /opt/data/.hermes && \
|
||||
printf 'model:\n provider: ollama-cloud\n default: gemma4:31b-cloud\n' > /opt/data/.hermes/config.yaml && \
|
||||
printf 'Você é Mika, uma assistente pessoal de IA criada pela DomCo.' > /opt/data/.hermes/SOUL.md
|
||||
|
||||
# A porta pública é definida pelo Railway via $PORT
|
||||
EXPOSE 8642
|
||||
|
||||
ENTRYPOINT ["/opt/hermes-custom/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue