Skip to content

Commit a615068

Browse files
authored
RHAIENG-495: fix(Dockerfile.cpu): add gettext for required envsubst usage in run-nginx.sh (#2612)
1 parent 9924a1f commit a615068

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

codeserver/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,17 @@ USER 0
139139
WORKDIR /opt/app-root/bin
140140

141141
# Install useful OS packages
142-
RUN dnf install -y jq git-lfs libsndfile && dnf clean all && rm -rf /var/cache/dnf
142+
RUN /bin/bash <<'EOF'
143+
set -Eeuxo pipefail
144+
PACKAGES=(
145+
jq git-lfs libsndfile
146+
# provides envsubst which is required by run-nginx.sh
147+
gettext
148+
)
149+
dnf install -y "${PACKAGES[@]}"
150+
dnf clean all
151+
rm -rf /var/cache/dnf
152+
EOF
143153

144154
# wait for rpm-base stage (rpm builds for ppc64le and s390x)
145155
COPY --from=rpm-base /tmp/control /dev/null

0 commit comments

Comments
 (0)