Dockerfile 640 B

1234567891011121314151617181920
  1. FROM docker.shemic.com/os/alpine:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. # set environment variable
  4. ENV CONSUL_VERSION=2.11
  5. # install
  6. RUN apk add --no-cache --update curl unzip && \
  7. curl -O https://releases.hashicorp.com/consul/$CONSUL_VERSION/consul_$CONSUL_VERSION_linux_amd64.zip && \
  8. unzip consul_$CONSUL_VERSION_linux_amd64.zip && \
  9. mv consul /usr/bin/ && \
  10. rm https://releases.hashicorp.com/consul/$CONSUL_VERSION/consul_$CONSUL_VERSION_linux_amd64.zip && \
  11. apk del curl unzip && \
  12. mkdir -p /root/consul/data && \
  13. mkdir -p /root/consul/config
  14. COPY consul.sh /entrypoint/consul.sh
  15. VOLUME ["/root/consul/config"]