-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
25 lines (16 loc) · 623 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
25
FROM haproxy:1.7.2
MAINTAINER Pan Luo <pan.luo@ubc.ca>
ENV ETCD_NODE http://172.17.0.1:2379
ENV confd_ver 0.12.0-alpha3
ENV KEY_PREFIX ""
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates openssl wget
RUN wget -t 5 https://github.com/kelseyhightower/confd/releases/download/v${confd_ver}/confd-${confd_ver}-linux-amd64 -O /bin/confd && \
chmod +x /bin/confd
RUN /usr/sbin/adduser --system --no-create-home --group haproxy
# Expose ports.
EXPOSE 80 443
ENTRYPOINT ["/entrypoint.sh"]
CMD ["-watch"]
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ADD confd /etc/confd