mirror of
https://github.com/3cky/mbusd.git
synced 2025-02-22 02:01:48 +01:00
11 lines
351 B
Docker
11 lines
351 B
Docker
FROM alpine:latest AS build
|
|
RUN apk add --no-cache alpine-sdk cmake linux-headers
|
|
COPY . /mbusd
|
|
WORKDIR /mbusd/build
|
|
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make && make install
|
|
|
|
FROM alpine:latest AS scratch
|
|
ENV QEMU_EXECVE=1
|
|
COPY --from=build /usr/bin/mbusd /usr/bin/mbusd
|
|
ENTRYPOINT ["/usr/bin/mbusd", "-d", "-L", "-", "-c", "/etc/mbusd.conf"]
|