Added Dockerfile and instructions to build it

This commit is contained in:
2025-06-16 11:17:57 +02:00
parent cb03e30928
commit ccf152bd25
2 changed files with 27 additions and 0 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM python:3.13-slim
RUN useradd --create-home --shell /bin/bash solarcontrol
WORKDIR /script
COPY solarcontrol.py ./
RUN pip install --upgrade pip && pip3 install --no-cache-dir paho-mqtt python-dotenv requests
USER solarcontrol
ENTRYPOINT ["/usr/bin/python3", "solarcontrol.py"]