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 && \
17 chown -R haproxy:haproxy /usr/local/etc/haproxy
19 RUN mkdir -p /etc/ssl/certs/ && mkdir -p /etc/ssl/private
21 COPY --chown=haproxy aai.pem /etc/ssl/private/aai.pem
22 COPY --chown=haproxy docker-entrypoint.sh /docker-entrypoint.sh
23 COPY --chown=haproxy resolvers.conf /usr/local/etc/haproxy/resolvers.conf
24 COPY --chown=haproxy haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
26 RUN chmod +x /docker-entrypoint.sh
29 ENTRYPOINT [ "/docker-entrypoint.sh" ]
30 CMD [ "haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg", "-f", "/usr/local/etc/haproxy/resolvers.conf" ]