mbusd/Dockerfile
Jakob Schlyter 55889a7292
Add simple Dockerfile for running mbusd containerized (#79)
* init

* simplify

* explicit gcc not needed

* do not clone repository, copy source from cwd (or we cannot build releases)
2021-11-15 14:04:04 +03:00

11 lines
337 B
Docker

FROM alpine:latest AS build
RUN apk add --no-cache alpine-sdk cmake
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"]