From 025613be6bb5a7a3baf9f7fbacc3c8341778e0ac Mon Sep 17 00:00:00 2001 From: Martyn Date: Fri, 8 Mar 2024 14:59:10 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4863bf4..06baead 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,12 @@ -FROM alpine:latest -RUN apk add --no-cache usb-ipp +FROM golang:bookworm AS builder + +RUN apk update && apk install -y git libusb-dev libavahi-client-dev libavahi-common-dev build-essential gcc + +RUN git clone https://github.com/OpenPrinting/ipp-usb.git + +RUN make + + +FROM scratch +COPY --FROM=builder /root/ipp-usb / +ENTRYPOINT /ipp-usb \ No newline at end of file