Skip to content

Commit dd8db0b

Browse files
authored
chore(NA): install microdnf in UBI docker build only (#82611) (#82631)
* chore(NA): install microdnf in uby docker build only * chore(NA): run microdnf update inside a retry * chore(NA): run microdnf update inside the main retry
1 parent 85fa2ca commit dd8db0b

File tree

1 file changed

+4
-2
lines changed
  • src/dev/build/tasks/os_packages/docker_generator/templates

1 file changed

+4
-2
lines changed

src/dev/build/tasks/os_packages/docker_generator/templates/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ EXPOSE 5601
5353
{{/ubi}}
5454

5555
RUN for iter in {1..10}; do \
56-
# update microdnf to have exclusion feature for dnf configuration
57-
{{packageManager}} update microdnf --setopt=tsflags=nodocs -y && \
56+
{{#ubi}}
57+
# update microdnf to have exclusion feature for dnf configuration
58+
{{packageManager}} update microdnf --setopt=tsflags=nodocs -y && \
59+
{{/ubi}}
5860
{{packageManager}} update --setopt=tsflags=nodocs -y && \
5961
{{packageManager}} install --setopt=tsflags=nodocs -y \
6062
fontconfig freetype shadow-utils libnss3.so {{#ubi}}findutils{{/ubi}} && \

0 commit comments

Comments
 (0)