github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/builder/dockerfile/parser/testfile-line/Dockerfile (about) 1 # ESCAPE=\ 2 3 4 5 FROM brimstone/ubuntu:14.04 6 7 8 # TORUN -v /var/run/docker.sock:/var/run/docker.sock 9 10 11 ENV GOPATH \ 12 /go 13 14 15 16 # Install the packages we need, clean up after them and us 17 RUN apt-get update \ 18 && dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.clean \ 19 20 21 && apt-get install -y --no-install-recommends git golang ca-certificates \ 22 && apt-get clean \ 23 && rm -rf /var/lib/apt/lists \ 24 25 && go get -v github.com/brimstone/consuldock \ 26 && mv $GOPATH/bin/consuldock /usr/local/bin/consuldock \ 27 28 && dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.dirty \ 29 && apt-get remove --purge -y $(diff /tmp/dpkg.clean /tmp/dpkg.dirty | awk '/^>/ {print $2}') \ 30 && rm /tmp/dpkg.* \ 31 && rm -rf $GOPATH 32 33 34 35