forked from CiscoCloud/haproxy-consul
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (15 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
23 lines (15 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.3
MAINTAINER Steven Borrelli <steve@aster.is>
ENV CONSUL_TEMPLATE_VERSION=0.12.2
RUN apk update && \
apk add bash haproxy ca-certificates zip && \
rm -rf /var/cache/apk/*
ADD https://releases.hashicorp.com/consul-template/${CONSUL_TEMPLATE_VERSION}/consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip /
RUN unzip /consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip && \
mv /consul-template /usr/local/bin/consul-template && \
rm -rf /consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip
RUN mkdir -p /haproxy /consul-template/config.d /consul-template/template.d
ADD config/ /consul-template/config.d/
ADD template/ /consul-template/template.d/
ADD launch.sh /launch.sh
CMD ["/launch.sh"]