2018-01-28 19:58:52 +00:00
|
|
|
FROM debian:testing
|
2015-09-22 17:19:58 +00:00
|
|
|
|
|
|
|
RUN apt-get update -y && apt-get install --no-install-recommends -y -q \
|
|
|
|
curl \
|
|
|
|
zip \
|
|
|
|
build-essential \
|
2018-04-03 14:46:45 +00:00
|
|
|
gcc-multilib \
|
|
|
|
g++-multilib \
|
2015-09-22 17:19:58 +00:00
|
|
|
ca-certificates \
|
|
|
|
git mercurial bzr \
|
2018-04-03 14:46:45 +00:00
|
|
|
gnupg \
|
|
|
|
libltdl-dev \
|
|
|
|
libltdl7
|
|
|
|
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2018-11-05 16:56:59 +00:00
|
|
|
RUN npm install -g yarn@1.12.1
|
2015-09-22 17:19:58 +00:00
|
|
|
|
2018-12-14 14:10:32 +00:00
|
|
|
ENV GOVERSION 1.11.3
|
2015-09-22 17:19:58 +00:00
|
|
|
RUN mkdir /goroot && mkdir /gopath
|
|
|
|
RUN curl https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz \
|
|
|
|
| tar xvzf - -C /goroot --strip-components=1
|
|
|
|
|
|
|
|
ENV GOPATH /gopath
|
|
|
|
ENV GOROOT /goroot
|
|
|
|
ENV PATH $GOROOT/bin:$GOPATH/bin:$PATH
|
|
|
|
|
|
|
|
RUN go get github.com/mitchellh/gox
|
2018-12-14 15:56:03 +00:00
|
|
|
RUN go get github.com/elazarl/go-bindata-assetfs
|
|
|
|
RUN go get github.com/hashicorp/go-bindata
|
2015-09-22 17:19:58 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /gopath/src/github.com/hashicorp/vault
|
|
|
|
WORKDIR /gopath/src/github.com/hashicorp/vault
|
2018-04-03 14:46:45 +00:00
|
|
|
CMD make static-dist bin
|