forked from cgswong/docker-vault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tpl
26 lines (21 loc) · 847 Bytes
/
Dockerfile.tpl
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
# ################################################################
# DESC: Docker file to run Hashicorp Vault (vaultproject.io)
#
# LOG:
# yyyy/mm/dd [name] [version]: [notes]
# 2015/05/01 cgwong [v0.1.0]: Initial creation.
# ################################################################
FROM gliderlabs/alpine:3.1
MAINTAINER Stuart Wong <cgs.wong@gmail.com>
ENV VAULT_VERSION %%VERSION%%
ENV VAULT_TMP /tmp/vault.zip
ENV VAULT_HOME /usr/local/bin
ENV PATH $PATH:${VAULT_HOME}
RUN apk --update add wget bash ca-certificates && \
wget --no-check-certificate --quiet --output-document=${VAULT_TMP} https://dl.bintray.com/mitchellh/vault/vault_${VAULT_VERSION}_linux_amd64.zip && \
unzip ${VAULT_TMP} -d ${VAULT_HOME} && \
rm -f ${VAULT_TMP}
# Listener API tcp port
EXPOSE 8200
ENTRYPOINT ["/usr/local/bin/vault"]
CMD ["version"]