removing httpd on prepare base DockerFile (#17060)

update photon prepare base by removing httpd

Signed-off-by: yminer <yminer@vmware.com>
This commit is contained in:
MinerYang 2022-06-23 16:30:16 +08:00 committed by GitHub
parent ce18afaf8b
commit f87803b5a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
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 cpio apr-util
RUN tdnf -y --downloadonly --downloaddir=/tmp/ install httpd && rpm2cpio /tmp/httpd-*.rpm | cpio -ivdm ./usr/bin/htpasswd && rm -f /tmp/*