FROM python:3.13-slim RUN useradd --create-home --shell /bin/bash solarcontrol WORKDIR /script COPY solarcontrol.py ./ RUN pip install --upgrade pip USER solarcontrol RUN pip install --user --no-cache-dir paho-mqtt python-dotenv requests CMD ["python", "solarcontrol.py"]