Dockerfile 831 B

1234567891011121314151617181920212223242526272829
  1. FROM debian as build-connector
  2. RUN apt-get update && apt-get install -y build-essential libcups2-dev libavahi-client-dev git bzr git golang && apt-get clean
  3. ENV GOPATH=/go
  4. RUN mkdir /go
  5. RUN go get github.com/google/cloud-print-connector/...
  6. #################################
  7. FROM debian
  8. COPY --from=build-connector /go/bin/* /usr/local/bin/
  9. RUN apt-get update && apt-get install -y nano cups wget && apt-get clean
  10. WORKDIR /root
  11. RUN wget http://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.0-1.gz
  12. RUN gunzip -f linux-brprinter-installer-2.2.0-1.gz && chmod +x linux-brprinter-installer-2.2.0-1
  13. RUN cupsd && printf "MFC-L2685DW\ny\ny\ny\ny\nn\nn\ny\ny\n" | ./linux-brprinter-installer-2.2.0-1
  14. RUN cupsd && cupsctl --remote-admin --remote-any --share-printers
  15. ADD run.sh /root/run.sh
  16. CMD ./run.sh