2016-04-22 22:04:46 +00:00
|
|
|
# ESCAPE=\
|
2015-11-01 21:28:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM brimstone/ubuntu:14.04
|
|
|
|
|
|
|
|
|
|
|
|
# TORUN -v /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
|
|
|
|
|
|
|
ENV GOPATH \
|
|
|
|
/go
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install the packages we need, clean up after them and us
|
|
|
|
RUN apt-get update \
|
|
|
|
&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.clean \
|
2016-12-02 13:15:55 +00:00
|
|
|
|
|
|
|
|
2020-03-11 09:57:16 +00:00
|
|
|
&& apt-get --no-install-recommends install -y git golang ca-certificates \
|
2015-11-01 21:28:30 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists \
|
2016-12-02 13:15:55 +00:00
|
|
|
|
2015-11-01 21:28:30 +00:00
|
|
|
&& go get -v github.com/brimstone/consuldock \
|
|
|
|
&& mv $GOPATH/bin/consuldock /usr/local/bin/consuldock \
|
2016-12-02 13:15:55 +00:00
|
|
|
|
2015-11-01 21:28:30 +00:00
|
|
|
&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.dirty \
|
|
|
|
&& apt-get remove --purge -y $(diff /tmp/dpkg.clean /tmp/dpkg.dirty | awk '/^>/ {print $2}') \
|
|
|
|
&& rm /tmp/dpkg.* \
|
|
|
|
&& rm -rf $GOPATH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|