dockerfiles/vault/Dockerfile
Jess Frazelle adba7a9f65
bump vault
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-04-26 11:13:45 -04:00

39 lines
912 B
Docker

FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk --no-cache add \
ca-certificates
ENV VAULT_VERSION v0.10.1
RUN buildDeps=' \
bash \
go \
git \
gcc \
g++ \
libc-dev \
libgcc \
make \
yarn \
zip \
' \
set -x \
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
&& mkdir -p /go/src/github.com/hashicorp \
&& git clone --depth 1 --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
&& cd /go/src/github.com/hashicorp/vault \
&& go get github.com/mitchellh/gox \
&& yarn global add bower \
&& XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bootstrap static-dist bin \
&& mv bin/vault /usr/bin/ \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "vault" ]