Added example docker-compose.yaml
This commit is contained in:
@@ -2,6 +2,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
|
||||
RUN pip install --upgrade pip
|
||||
USER solarcontrol
|
||||
ENTRYPOINT ["/usr/bin/python3", "solarcontrol.py"]
|
||||
RUN pip install --user --no-cache-dir paho-mqtt python-dotenv requests
|
||||
CMD ["python", "solarcontrol.py"]
|
||||
|
Reference in New Issue
Block a user