Skip to content

Commit 6d5fc99

Browse files
committed
mbusd
1 parent 8748aa7 commit 6d5fc99

2 files changed

Lines changed: 166 additions & 138 deletions

File tree

‎hass-addon-mbusd/Dockerfile‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
FROM ghcr.io/home-assistant/base:3.22
1+
ARG BASE=ghcr.io/home-assistant/base:3.22
22

33
# mbusd Dockerfile as reference https://github.com/3cky/mbusd/blob/master/Dockerfile
44
# - FROM home-assistant/base iso alpine:latest
55
# - Clone a specific git tag from https://github.com/3cky/mbusd/releases
6-
FROM ${BUILD_FROM} AS build
6+
FROM ${BASE} AS build
77
RUN apk add --no-cache alpine-sdk cmake linux-headers git
88
WORKDIR /usr/src
9-
RUN git clone --depth 1 --branch v0.5.2 https://github.com/3cky/mbusd.git
9+
RUN git clone --depth 1 --branch v0.5.3 https://github.com/3cky/mbusd.git
1010
RUN cd mbusd \
1111
&& cmake -DCMAKE_INSTALL_PREFIX=/usr . \
1212
&& make && make install
1313

14-
FROM ${BUILD_FROM} AS runtime
14+
FROM ${BASE} AS runtime
15+
ENV QEMU_EXECVE=1
1516
COPY --from=build /usr/bin/mbusd /usr/bin/mbusd
1617
WORKDIR /usr/src
1718
COPY run.sh run.sh

0 commit comments

Comments
 (0)