我目前正在尝试使用最小为Ubi-7的Baseimage制作Dockerfile(这是必须做的), 制作一个Joomla-Dockerimage。 问题是,它总是说“没有软件包匹配php” 首先,我的Dockerfile(我知道,CMD丢失了,但这不是重点)
FROM registry.access.redhat.com/ubi7/ubi-minimal
EXPOSE 443 80
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
RUN microdnf install epel-release
RUN microdnf install httpd
RUN microdnf install php
有些建议,例如here,但没有成功。 另一个建议是,首先安装epel-release,但是在构建时,它只是说在运行“ RUN microdnf install epel-release”时不做任何事情。
预先感谢
答案 0 :(得分:2)
根据https://developers.redhat.com/blog/2019/05/31/working-with-red-hat-enterprise-linux-universal-base-images-ubi/,您应该安装rh-php72,而不是通用php。您可以尝试使用搜索命令查看哪些php软件包也可用。