-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (18 loc) · 874 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM nginx:1.19.9
LABEL maintainer="Smotrov Dmitriy <[email protected]>"
ENV CONSUL_TEMPLATE_VERSION 0.25.1
ENV CONSUL_ADDR 127.0.0.1:8500
RUN apt-get update && \
apt-get install -y wget
RUN cd /tmp && \
wget "https://releases.hashicorp.com/consul-template/${CONSUL_TEMPLATE_VERSION}/consul-template_${CONSUL_TEMPLATE_VERSION}_SHA256SUMS" && \
wget "https://releases.hashicorp.com/consul-template/${CONSUL_TEMPLATE_VERSION}/consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.tgz" && \
sha256sum -c consul-template_${CONSUL_TEMPLATE_VERSION}_SHA256SUMS 2>&1 | grep OK && \
tar -xzvf consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.tgz && \
mv consul-template /bin/consul-template && \
rm -rf /tmp
EXPOSE 80
EXPOSE 443
COPY default.conf.ctmpl /etc/nginx/conf.d/
COPY ./bin/docker-entrypoint.sh /bin/
ENTRYPOINT ["/bin/docker-entrypoint.sh"]