mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 13:28:30 +01:00
1acfaf03c4
Signed-off-by: Jessica Frazelle <princess@docker.com>
20 lines
597 B
Docker
20 lines
597 B
Docker
FROM debian:jessie
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
ENV CONSUL_VERSION 0.5.2
|
|
ADD https://jesss.s3.amazonaws.com/binaries/consul/${CONSUL_VERSION}/consul /usr/local/bin/consul
|
|
ADD https://jesss.s3.amazonaws.com/binaries/curl-unix-socket /usr/local/bin/curl-unix-socket
|
|
|
|
COPY ./dist/ /usr/src/consul
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
ca-certificates \
|
|
curl \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& mkdir -p /etc/consul.d/ \
|
|
&& chmod +x /usr/local/bin/consul \
|
|
&& chmod +x /usr/local/bin/curl-unix-socket
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/consul" ]
|