github.com/eikeon/docker@v1.5.0-rc4/builder/parser/testfiles/brimstone-docker-consul/Dockerfile (about)

     1  FROM brimstone/ubuntu:14.04
     2  
     3  CMD []
     4  
     5  ENTRYPOINT ["/usr/bin/consul", "agent", "-server", "-data-dir=/consul", "-client=0.0.0.0", "-ui-dir=/webui"]
     6  
     7  EXPOSE 8500 8600 8400 8301 8302
     8  
     9  RUN apt-get update \
    10      && apt-get install -y unzip wget \
    11  	&& apt-get clean \
    12  	&& rm -rf /var/lib/apt/lists
    13  
    14  RUN cd /tmp \
    15      && wget https://dl.bintray.com/mitchellh/consul/0.3.1_web_ui.zip \
    16         -O web_ui.zip \
    17      && unzip web_ui.zip \
    18      && mv dist /webui \
    19      && rm web_ui.zip
    20  
    21  RUN apt-get update \
    22  	&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.clean \
    23      && apt-get install -y --no-install-recommends unzip wget \
    24      && apt-get clean \
    25      && rm -rf /var/lib/apt/lists \
    26  
    27      && cd /tmp \
    28      && wget https://dl.bintray.com/mitchellh/consul/0.3.1_web_ui.zip \
    29         -O web_ui.zip \
    30      && unzip web_ui.zip \
    31      && mv dist /webui \
    32      && rm web_ui.zip \
    33  
    34  	&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.dirty \
    35  	&& apt-get remove --purge -y $(diff /tmp/dpkg.clean /tmp/dpkg.dirty | awk '/^>/ {print $2}') \
    36  	&& rm /tmp/dpkg.*
    37  
    38  ENV GOPATH /go
    39  
    40  RUN apt-get update \
    41  	&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.clean \
    42      && apt-get install -y --no-install-recommends git golang ca-certificates build-essential \
    43      && apt-get clean \
    44      && rm -rf /var/lib/apt/lists \
    45  
    46  	&& go get -v github.com/hashicorp/consul \
    47  	&& mv $GOPATH/bin/consul /usr/bin/consul \
    48  
    49  	&& dpkg -l | awk '/^ii/ {print $2}' > /tmp/dpkg.dirty \
    50  	&& apt-get remove --purge -y $(diff /tmp/dpkg.clean /tmp/dpkg.dirty | awk '/^>/ {print $2}') \
    51  	&& rm /tmp/dpkg.* \
    52  	&& rm -rf $GOPATH