FROM golang:bookworm AS builder RUN apt update && apt install -y git libusb-dev libusb-1.0-0-dev libavahi-client-dev libavahi-common-dev build-essential gcc libusb-0.1-4 libavahi-client3 libavahi-common3 libusb-1.0-0 RUN git clone https://github.com/OpenPrinting/ipp-usb.git RUN cd ipp-usb && make && pwd && ldd ipp-usb FROM scratch COPY --from=builder /root/ipp-usb/ipp-usb /app/ipp-usb ENTRYPOINT /app/ipp-usb