FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY server.py discover.py ./

EXPOSE 3030

ENV SHELLY_MCP_HOST=0.0.0.0 \
    SHELLY_MCP_PORT=3030

CMD ["python3", "server.py"]
