1 FROM haproxy:1.7-alpine
3 # Set up your corporate proxy if there is
9 RUN apk add --no-cache \
14 RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private
16 COPY aai.pem /etc/ssl/private/aai.pem
17 COPY docker-entrypoint.sh /docker-entrypoint.sh
18 COPY resolvers.conf /usr/local/etc/haproxy/resolvers.conf
19 COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
21 RUN chmod +x /docker-entrypoint.sh
23 ENTRYPOINT [ "/docker-entrypoint.sh" ]
24 CMD [ "haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg", "-f", "/usr/local/etc/haproxy/resolvers.conf" ]