From d1031ecafce6fc0a8ed29286a49919e3d9577f0c Mon Sep 17 00:00:00 2001 From: zgaetano Date: Tue, 31 Mar 2026 15:29:40 -0400 Subject: [PATCH] Add mcp-gateway/homeassistant-mcp/Dockerfile --- mcp-gateway/homeassistant-mcp/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mcp-gateway/homeassistant-mcp/Dockerfile diff --git a/mcp-gateway/homeassistant-mcp/Dockerfile b/mcp-gateway/homeassistant-mcp/Dockerfile new file mode 100644 index 0000000..b186287 --- /dev/null +++ b/mcp-gateway/homeassistant-mcp/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.12-slim-bookworm + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY homeassistant_mcp.py . +COPY entrypoint.py . + +ENV PORT=8200 + +EXPOSE 8200 + +HEALTHCHECK --interval=30s --timeout=5s --start-period=15s \ + CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8200/mcp', timeout=5)" + +CMD ["python3", "entrypoint.py"]