@@ -63,7 +63,7 @@ RUN set -eux; \
6363{{ if is_alpine then ( -}}
6464 apk add --no-cache --virtual .ruby-builddeps \
6565 autoconf \
66- {{ if [ "3.1", "3.2" ] | index( env.version | rtrimstr("-rc")) then ( -}}
66+ {{ if env.version | rtrimstr("-rc") | IN("3.1", "3.2" ) then ( -}}
6767{{ # https://github.com/docker-library/ruby/pull/438 -}}
6868 bison \
6969{{ ) else "" end -}}
@@ -87,7 +87,7 @@ RUN set -eux; \
8787 openssl-dev \
8888 patch \
8989 procps \
90- {{ if [ "3.1", "3.2" ] | index( env.version | rtrimstr("-rc")) then ( -}}
90+ {{ if env.version | rtrimstr("-rc") | IN("3.1", "3.2" ) then ( -}}
9191 readline-dev \
9292{{ ) else "" end -}}
9393 ruby \
@@ -100,7 +100,7 @@ RUN set -eux; \
100100 savedAptMark="$(apt-mark showmanual)"; \
101101 apt-get update; \
102102 apt-get install -y --no-install-recommends \
103- {{ if [ "3.1", "3.2" ] | index( env.version | rtrimstr("-rc")) then ( -}}
103+ {{ if env.version | rtrimstr("-rc") | IN("3.1", "3.2" ) then ( -}}
104104{{ # https://github.com/docker-library/ruby/pull/438 -}}
105105 bison \
106106{{ ) else "" end -}}
@@ -115,7 +115,7 @@ RUN set -eux; \
115115 libgdbm-compat-dev \
116116 libglib2.0-dev \
117117 libncurses-dev \
118- {{ if [ "3.1", "3.2" ] | index( env.version | rtrimstr("-rc")) then ( -}}
118+ {{ if env.version | rtrimstr("-rc") | IN("3.1", "3.2" ) then ( -}}
119119 libreadline-dev \
120120{{ ) else "" end -}}
121121 libxml2-dev \
0 commit comments