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 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 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