From b11970ac3c9a91926bb13f7294d1574ee0904752 Mon Sep 17 00:00:00 2001 From: MinerYang Date: Thu, 23 Jun 2022 16:31:37 +0800 Subject: [PATCH] update install htpasswd in prepare dockerfile (#17056) update install htpasswd in prepare dockerfle Signed-off-by: yminer --- make/photon/prepare/Dockerfile.base | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/make/photon/prepare/Dockerfile.base b/make/photon/prepare/Dockerfile.base index e74c57af0..4b4bbf504 100644 --- a/make/photon/prepare/Dockerfile.base +++ b/make/photon/prepare/Dockerfile.base @@ -4,8 +4,5 @@ RUN tdnf install -y python3 python3-pip python3-PyYAML python3-jinja2 && tdnf cl RUN pip3 install pipenv==2020.11.15 #To install only htpasswd binary from photon package httpd -RUN tdnf install -y rpm -RUN tdnf -y --downloadonly --downloaddir=/tmp install httpd -RUN tdnf install -y apr-util -RUN rpm2cpio /tmp/httpd-*.rpm | cpio -iuvdm /usr/bin/htpasswd -RUN rm -f /tmp/* +RUN tdnf install -y rpm cpio apr-util +RUN tdnf -y --downloadonly --downloaddir=/tmp/ install httpd && rpm2cpio /tmp/httpd-*.rpm | cpio -ivdm ./usr/bin/htpasswd && rm -f /tmp/*