-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (22 loc) · 929 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Docker file to run Hashicorp Vault (vaultproject.io)
FROM alpine:3.12
MAINTAINER Derek Chamorro <[email protected]>
ENV VERSION 1.7.1
ADD https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_linux_amd64.zip /tmp/
ADD https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_SHA256SUMS /tmp/
ADD https://releases.hashicorp.com/vault/${VERSION}/vault_${VERSION}_SHA256SUMS.sig /tmp/
WORKDIR /tmp/
RUN apk --update add --virtual verify gpgme \
&& gpg --keyserver keyserver.ubuntu.com --recv-key 0x72D7468F \
&& gpg --verify /tmp/vault_${VERSION}_SHA256SUMS.sig \
&& apk del verify \
&& cat vault_${VERSION}_SHA256SUMS | grep linux_amd64 | sha256sum -c \
&& unzip vault_${VERSION}_linux_amd64.zip \
&& mv vault /usr/local/bin/ \
&& rm -rf /tmp/* \
&& rm -rf /var/cache/apk/*
WORKDIR /
# Expose TCP listener port
EXPOSE 8200
ENTRYPOINT ["/usr/local/bin/vault"]
CMD ["version"]