Files
truenas-mcp/Dockerfile
T

17 lines
794 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM python:3.11-slim
WORKDIR /app
# Компилятор нужен для сборки некоторых Python-пакетов
RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/*
# Явно фиксируем версию mcp на стабильную v1: mcpo требует mcp>=1.28,
# а truenas-mcp-server может тянуть более старую версию как зависимость.
# Ставим mcp первым шагом, чтобы дальнейшая установка его не понизила.
RUN pip install --no-cache-dir "mcp>=1.28,<2.0"
RUN pip install --no-cache-dir mcpo truenas-mcp-server
EXPOSE 8000
ENTRYPOINT ["mcpo"]
CMD ["--host", "0.0.0.0", "--port", "8000", "--config", "/app/config.json"]