Skip to content

Commit

Permalink
Merge pull request linkedin#161 from ChristianKniep/sanitise_dockerfile
Browse files Browse the repository at this point in the history
refine the Dockerfile slightly
  • Loading branch information
toddpalino authored Mar 2, 2017
2 parents dce021a + f78b9bb commit 6e01a77
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ FROM golang:alpine

MAINTAINER LinkedIn Burrow "https://github.com/linkedin/Burrow"

RUN apk add --update bash curl git && apk add ca-certificates wget && update-ca-certificates && rm -rf /var/cache/apk/*

RUN curl -sSO https://raw.githubusercontent.com/pote/gpm/v1.4.0/bin/gpm && \
chmod +x gpm && mv gpm /usr/local/bin
RUN apk add --no-cache curl bash git ca-certificates wget \
&& update-ca-certificates \
&& curl -sSO https://raw.githubusercontent.com/pote/gpm/v1.4.0/bin/gpm \
&& chmod +x gpm \
&& mv gpm /usr/local/bin

ADD . $GOPATH/src/github.com/linkedin/Burrow
RUN cd $GOPATH/src/github.com/linkedin/Burrow && gpm install && go install && mv $GOPATH/bin/Burrow $GOPATH/bin/burrow
RUN cd $GOPATH/src/github.com/linkedin/Burrow \
&& gpm install \
&& go install \
&& mv $GOPATH/bin/Burrow $GOPATH/bin/burrow \
&& apk del git curl wget

ADD docker-config /etc/burrow

Expand Down

0 comments on commit 6e01a77

Please sign in to comment.