Files
docker-voltronic-homeassistant/Dockerfile.multiarch
T
Pi Developer 3ed42dc8da
Build Docker Image for Raspberry Pi / build-and-push (push) Failing after 41s
Aggiorna base image da Debian Stretch a Bullseye
- Debian Stretch è deprecato e i repository non sono più disponibili
- Bullseye è la versione stable corrente e supporta le stesse architetture
2026-01-25 17:26:17 +01:00

37 lines
783 B
Docker

# Uncomment if building locally...
# FROM debian:bullseye
FROM --platform=${TARGETPLATFORM:-linux/amd64} debian:bullseye
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
ARG TARGETPLATFORM
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$VERSION \
org.label-schema.vcs-ref=$VCS_REF
RUN apt update && apt install -y \
curl \
git \
build-essential \
cmake \
jq \
mosquitto-clients
ADD sources/ /opt/
ADD config/ /etc/inverter/
RUN cd /opt/inverter-cli && \
mkdir bin && cmake . && make && mv inverter_poller bin/
HEALTHCHECK \
--interval=30s \
--timeout=10s \
--start-period=1m \
--retries=3 \
CMD /opt/healthcheck
WORKDIR /opt
ENTRYPOINT ["/bin/bash", "/opt/inverter-mqtt/entrypoint.sh"]