我正在尝试构建包含Nginx Web服务器和PHP的docker映像。
我正在使用带有centos 7的VM
这是我的Dockerfile
FROM remote-host
COPY ./conf/nginx.repo /etc/yum.repos.d/nginx.repo
RUN yum -y update && \
yum install -y epel-release && \
yum -y install nginx openssl --enablerepo=nginx && \
yum -y update && \
yum -y install https://centos7.iuscommunity.org/ius-release.rpm --nobest --skip-broken && \
yum -y install php71u-fpm php71u-cli && \
yum clean all
EXPOSE 80 443
VOLUME /var/www/html /var/log/nginx /var/log/php-fpm /var/lib/php-fpm
COPY ./conf/nginx.conf /etc/nginx/conf.d/default.conf
COPY ./bin/start.sh /start.sh
RUN chmod +x /start.sh
CMD /start.sh
这是错误输出:
Problem: conflicting requests
- nothing provides epel-release = 7 needed by ius-release-2-1.el7.ius.noarch
================================================================================
Skip 1 Package
Nothing to do.
Complete!
Last metadata expiration check: 0:00:22 ago on Fri Dec 6 23:07:40 2019.
**No match for argument: php71u-fpm
No match for argument: php71u-cli
Error: Unable to find a match**
ERROR: Service 'web' failed to build: The command '/bin/sh -c yum -y update && yum install -y epel-release && yum -y install nginx openssl --enablerepo=nginx && yum -y update && yum -y install https://centos7.iuscommunity.org/ius-release.rpm --nobest --skip-broken && yum -y install php71u-fpm php71u-cli && yum clean all' returned a non-zero code: 1
答案 0 :(得分:0)
缺少self.imageView.sd_setImage(with: Storage.storage().reference().child(url), placeholderImage: nil)
包。
确保epel-release
Extras存储库包含用于安装EPEL的软件包
您可以使用以下命令进行检查
CentOS
答案 1 :(得分:0)
软件包家族php71u
is deprecated,但可以通过将存储库设置为“ ius-archive”而不是“ ius-release”来下载。像明智的选择:
yum --enablerepo=ius-archive install php71u-fpm