Add homeassistant-mcp/Dockerfile

This commit is contained in:
zgaetano 2026-03-31 15:33:41 -04:00
parent ebb6836674
commit 9de9d2f878

View file

@ -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"]