From 615a4cbb527eee9180c657144c23d1f5f7d63d30 Mon Sep 17 00:00:00 2001 From: MinerYang Date: Thu, 28 Apr 2022 13:20:03 +0800 Subject: [PATCH] install only htpasswd binary from photon package httpd (#16771) Signed-off-by: yminer cpio -u Signed-off-by: yminer Co-authored-by: yminer --- make/photon/prepare/Dockerfile.base | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/make/photon/prepare/Dockerfile.base b/make/photon/prepare/Dockerfile.base index ce9ec00a3..e74c57af0 100644 --- a/make/photon/prepare/Dockerfile.base +++ b/make/photon/prepare/Dockerfile.base @@ -1,4 +1,11 @@ FROM photon:4.0 -RUN tdnf install -y python3 python3-pip httpd python3-PyYAML python3-jinja2 && tdnf clean all +RUN tdnf install -y python3 python3-pip python3-PyYAML python3-jinja2 && tdnf clean all 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/*