Added Dockerfile and instructions to build it

This commit is contained in:
BlueFox committed 2025-06-16 11:17:57 +02:00
1 parent cb03e30928
commit ccf152bd25
2 files changed
+27

No files matched your search

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