ipp-usb-docker/Dockerfile

13 lines
424 B
Docker
Raw Normal View History

2024-03-08 14:59:10 +00:00
FROM golang:bookworm AS builder
2024-03-08 15:13:36 +00:00
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
2024-03-08 14:59:10 +00:00
RUN git clone https://github.com/OpenPrinting/ipp-usb.git
2024-03-08 15:17:51 +00:00
RUN cd ipp-usb && make && pwd && ldd ipp-usb
2024-03-08 14:59:10 +00:00
FROM scratch
2024-03-08 15:17:51 +00:00
RUN mkdir /app
COPY --from=builder /root/ipp-usb/ipp-usb /app/
ENTRYPOINT /app/ipp-usb