0

这是一个 DockerFile。在 Mac 上面临问题。

Error: Package: pgdg-redhat-repo-42.0-6.noarch (/pgdg-redhat10-10-2.noarch)
           Requires: /etc/redhat-release
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
The command '/bin/sh -c yum install -y     https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-redhat10-10-2.noarch.rpm' returned a non-zero code: 1

请检查下面的 Dockerfile

FROM lambci/lambda:build-ruby2.5

RUN yum install -y \
    https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-redhat10-10-2.noarch.rpm
RUN sed -i "s/rhel-\$releasever-\$basearch/rhel-6.9-x86_64/g" "/etc/yum.repos.d/pgdg-10-redhat.repo"
RUN yum install -y postgresql10-devel
RUN gem update bundler

CMD "/bin/bash"

请提供适用于 Mac 的解决方案。我尝试了所有其他类似的问题答案,但对我没有任何帮助,所以再次发布。

4

0 回答 0