1 FROM haproxy:1.7-alpine
3 # Set up your corporate proxy if there is
9 RUN apk add --no-cache \
15 groupadd haproxy -g 1000 && \
16 adduser -u 1000 -S -D -G haproxy -s /bin/bash haproxy
18 RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private
20 COPY aai.pem /etc/ssl/private/aai.pem
21 COPY docker-entrypoint.sh /docker-entrypoint.sh
22 COPY resolvers.conf /usr/local/etc/haproxy/resolvers.conf
23 COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
25 RUN chmod +x /docker-entrypoint.sh
27 ENTRYPOINT [ "/docker-entrypoint.sh" ]
28 CMD [ "haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg", "-f", "/usr/local/etc/haproxy/resolvers.conf" ]