Compare commits
No commits in common. "c61fc66c10d1b9f9bd8e3ccd54a35bcc3d79017e" and "c332701357df71f1a9bcd0bfd4957eb45a42f0c9" have entirely different histories.
c61fc66c10
...
c332701357
@ -2,7 +2,6 @@ FROM python:3.13-slim
|
||||
RUN useradd --create-home --shell /bin/bash solarcontrol
|
||||
WORKDIR /script
|
||||
COPY solarcontrol.py ./
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --upgrade pip && pip3 install --no-cache-dir paho-mqtt python-dotenv requests
|
||||
USER solarcontrol
|
||||
RUN pip install --user --no-cache-dir paho-mqtt python-dotenv requests
|
||||
CMD ["python", "solarcontrol.py"]
|
||||
ENTRYPOINT ["/usr/bin/python3", "solarcontrol.py"]
|
||||
|
@ -30,7 +30,7 @@ To build the image for docker, simply use the following commands:
|
||||
docker login # login to docker hub
|
||||
docker buildx create --name buildx-multi-arch
|
||||
docker buildx use buildx-multi-arch
|
||||
docker buildx build --no-cache --platform linux/amd64,linux/386,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x -t bluefox42/solarcontrol:<VERSION> -t bluefox42/solarcontrol:latest . --push
|
||||
docker buildx build --no-cache --platform linux/amd64,linux/386,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x -t bluefox42/solarcontrol:<TAGNAME> . --push
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,8 +0,0 @@
|
||||
services:
|
||||
solarcontrol:
|
||||
image: bluefox42/solarcontrol:latest
|
||||
hostname: solarcontrol
|
||||
container_name: solarcontrol
|
||||
env_file: ".env"
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 15s
|
Loading…
x
Reference in New Issue
Block a user