dockerfiles/consul/Dockerfile

19 lines
571 B
Docker
Raw Normal View History

2015-03-17 02:44:11 +01:00
FROM debian:jessie
2015-01-27 12:05:21 +01:00
MAINTAINER Jessica Frazelle <jess@docker.com>
2015-03-17 03:03:26 +01:00
ENV CONSUL_VERSION 0.5.0
ADD https://jesss.s3.amazonaws.com/binaries/consul/${CONSUL_VERSION}/consul /usr/local/bin/consul
2015-01-28 19:36:17 +01:00
ADD https://jesss.s3.amazonaws.com/binaries/curl-unix-socket /usr/local/bin/curl-unix-socket
2015-01-27 12:05:21 +01:00
COPY ./dist/ /usr/src/consul
2015-03-17 02:44:11 +01:00
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
--no-install-recommends \
2015-01-27 12:23:48 +01:00
&& mkdir -p /etc/consul.d/ \
2015-01-27 12:51:46 +01:00
&& chmod +x /usr/local/bin/consul \
&& chmod +x /usr/local/bin/curl-unix-socket
2015-01-27 12:05:21 +01:00
ENTRYPOINT [ "/usr/local/bin/consul" ]