install only htpasswd binary from photon package httpd (#16771)

Signed-off-by: yminer <yminer@vmmware.com>

cpio -u

Signed-off-by: yminer <yminer@vmmware.com>

Co-authored-by: yminer <yminer@vmmware.com>
This commit is contained in:
MinerYang 2022-04-28 13:20:03 +08:00 committed by GitHub
parent 083b44e719
commit 615a4cbb52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/*