FROM debian:buster AS builder RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yq \ ca-certificates \ libmicrohttpd-dev \ libudev-dev \ git \ gcc \ g++ \ make \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* WORKDIR /tmp/ RUN git clone --depth 1 https://github.com/OpenZWave/open-zwave RUN git clone --depth 1 https://github.com/OpenZWave/open-zwave-control-panel WORKDIR /tmp/open-zwave/ RUN make -j 10 WORKDIR /tmp/open-zwave-control-panel/ RUN mkdir config && make -j 10 dist FROM debian:buster RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yq \ libmicrohttpd12 \ tar \ gzip \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* COPY --from=builder /tmp/open-zwave-control-panel/ozwcp.tar.gz /tmp/ WORKDIR /root/ RUN tar xf /tmp/ozwcp.tar.gz CMD ["./ozwcp"]