@@ -62,7 +62,7 @@ ENV HAPROXY_SHA256 {{ .sha256 }}
6262 # Since 5.4 is supported on haproxy, better use it now, but only for
6363 # newer versions since there could be some minor incompatibilities
6464 # for existing scripts: https://www.lua.org/manual/5.4/manual.html#8
65- if env.version | IN("2.4", "2. 6", "2.8") then
65+ if env.version | IN("2.6", "2.8") then
6666 "5.3"
6767 else
6868 "5.4"
@@ -121,7 +121,7 @@ RUN set -eux; \
121121 USE_PROMEX=1 \
122122 # https://github.com/haproxy/haproxy/blob/a203ce685464988afbd92c8a376fcafae9bab5b5/INSTALL#L368-L373
123123 USE_PTHREAD_EMULATION=1 \
124- {{ if env.version | IN("2.4", "2. 6", "2.8", "3.0") then "" else ( -}}
124+ {{ if env.version | IN("2.6", "2.8", "3.0") then "" else ( -}}
125125 # https://www.haproxy.com/blog/announcing-haproxy-3-2#quic-protocol
126126 # [in 3.2] QUIC TLS API was ported to OpenSSL 3.5
127127 # Openssl 3.5+ is available on Debian Trixie and Alpine 3.22 and newer
@@ -185,7 +185,7 @@ ENTRYPOINT ["docker-entrypoint.sh"]
185185
186186USER haproxy
187187
188- {{ if env.version | IN("2.4", "2. 6") then ( -}}
188+ {{ if env.version | IN("2.6") then ( -}}
189189# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
190190{{ ) else ( -}}
191191# https://github.com/docker-library/haproxy/issues/200
0 commit comments