mirror of
https://github.com/3cky/mbusd.git
synced 2024-11-14 10:15:17 +01:00
55889a7292
* init * simplify * explicit gcc not needed * do not clone repository, copy source from cwd (or we cannot build releases)
11 lines
337 B
Docker
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"]
|