|
@@ -0,0 +1,31 @@
|
|
|
|
+from debian as build-connector
|
|
|
|
+
|
|
|
|
+RUN apt-get update && apt-get install -y build-essential libcups2-dev libavahi-client-dev git bzr git golang && apt-get clean
|
|
|
|
+
|
|
|
|
+ENV GOPATH=/go
|
|
|
|
+RUN mkdir /go
|
|
|
|
+
|
|
|
|
+RUN go get github.com/google/cloud-print-connector/...
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#################################
|
|
|
|
+
|
|
|
|
+from debian as cups
|
|
|
|
+
|
|
|
|
+COPY --from=build-connector /go/bin/* /usr/local/bin/
|
|
|
|
+RUN apt-get update && apt-get install -y nano cups wget && apt-get clean
|
|
|
|
+
|
|
|
|
+WORKDIR /root
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#RUN cupsd && wget http://www.brother.com/pub/bsc/linux/packages/mfcl2685dwcupswrapper-3.2.1-1.i386.deb && dpkg -i --force-architecture mfcl2685dwcupswrapper-3.2.1-1.i386.deb && rm -rf mfcl2685dwcupswrapper-3.2.1-1.i386.deb
|
|
|
|
+RUN wget http://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.0-1.gz
|
|
|
|
+RUN gunzip -f linux-brprinter-installer-2.2.0-1.gz && chmod +x linux-brprinter-installer-2.2.0-1
|
|
|
|
+
|
|
|
|
+RUN cupsd && printf "MFC-L2685DW\ny\ny\ny\ny\nn\nn\ny\ny\n" | ./linux-brprinter-installer-2.2.0-1
|
|
|
|
+
|
|
|
|
+RUN cupsd && cupsctl --remote-admin --remote-any --share-printers
|
|
|
|
+
|
|
|
|
+ADD run.sh /root/run.sh
|
|
|
|
+
|
|
|
|
+CMD ./run.sh
|