Added Dockerfile and instructions to build it
This commit is contained in:
7
Dockerfile
Normal file
7
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user