ipp-usb-docker/Dockerfile

13 lines
424 B
Docker

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
RUN mkdir /app
COPY --from=builder /root/ipp-usb/ipp-usb /app/
ENTRYPOINT /app/ipp-usb