docker-haproxy-k8s/Dockerfile
Renovate Bot ce718242cf
All checks were successful
Main / build (push) Successful in -2m44s
chore(deps): update haproxy docker tag to v2.8.4
2023-11-19 00:03:58 +00:00

23 lines
697 B
Docker

FROM haproxy:2.8.4-alpine3.18
LABEL architecture="$TARGETPLATFORM" \
license="beerware" \
name="haproxy" \
summary="Alpine based haproxy container" \
mantainer="antoinroux@hotmail.fr"
USER root
RUN apk add --no-cache gettext
COPY --chown=haproxy:haproxy haproxy.template.cfg /etc/haproxy/haproxy.template.cfg
COPY --chmod=750 --chown=haproxy:haproxy init.sh /
EXPOSE 6443 9000
ENV ADMIN_PASSWORD ""
ENV PEER_0 192.168.2.3:6443
ENV PEER_1 192.168.2.25:6443
ENV PEER_2 192.168.2.19:6443
# extract from https://github.com/docker-library/haproxy/blob/master/Dockerfile.template#L166
ENTRYPOINT ["/init.sh", "docker-entrypoint.sh"]
CMD ["haproxy", "-f", "/etc/haproxy/haproxy.cfg"]