Skip to content

Commit d200484

Browse files
authored
Don't install yum to update dependencies (#360)
1 parent 98ed547 commit d200484

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

template/docker/Dockerfile.j2

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ LABEL name="Stackable Operator for {[ operator.pretty_string }]" \
1717
summary="Deploy and manage {[ operator.pretty_string }] clusters." \
1818
description="Deploy and manage {[ operator.pretty_string }] clusters."
1919

20-
# Update image
21-
RUN microdnf install -y yum \
22-
&& yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical \
23-
&& yum clean all \
24-
&& microdnf clean all
25-
26-
# Install kerberos client libraries
27-
RUN microdnf install -y krb5-libs libkadm5 && microdnf clean all
20+
# Update image and install kerberos client libraries
21+
RUN microdnf update -y --setopt=install_weak_deps=False \
22+
&& microdnf install -y --setopt=install_weak_deps=False \
23+
krb5-libs \
24+
libkadm5 \
25+
&& microdnf clean all \
26+
&& rm -rf /var/cache/yum
2827

2928
COPY LICENSE /licenses/LICENSE
3029

0 commit comments

Comments
 (0)