27 lines
692 B
Docker
27 lines
692 B
Docker
|
FROM ubuntu:trusty
|
||
|
|
||
|
ENV GOVERSION 1.6
|
||
|
|
||
|
RUN apt-get update -y && \
|
||
|
apt-get install --no-install-recommends -y -q \
|
||
|
build-essential \
|
||
|
ca-certificates \
|
||
|
curl \
|
||
|
git \
|
||
|
ruby \
|
||
|
ruby-dev \
|
||
|
zip && \
|
||
|
gem install bundler
|
||
|
|
||
|
RUN mkdir /goroot && \
|
||
|
mkdir /gopath && \
|
||
|
curl https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz | \
|
||
|
tar xzf - -C /goroot --strip-components=1
|
||
|
|
||
|
ENV GOPATH /gopath
|
||
|
ENV GOROOT /goroot
|
||
|
ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH
|
||
|
|
||
|
RUN mkdir -p $GOPATH/src/github.com/hashicorp/consul
|
||
|
WORKDIR $GOPATH/src/github.com/hashicorp/consul
|
||
|
CMD ./scripts/dist_build.sh
|