]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
amazonlinux-2: install EPEL the amazon way
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 10 Mar 2021 21:10:23 +0000 (22:10 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 10 Mar 2021 21:10:23 +0000 (22:10 +0100)
builder-support/dockerfiles/Dockerfile.target.amazon-2

index bda6eb1fff6d313869a075fbb353f044756a5410..cac43d12fe913e74040d17247228672894767d96 100644 (file)
@@ -5,7 +5,7 @@
 # Put only the bare minimum of common commands here, without dev tools
 FROM amazonlinux:2 as dist-base
 ARG BUILDER_CACHE_BUSTER=
-RUN touch /var/lib/rpm/* && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+RUN touch /var/lib/rpm/* && amazon-linux-extras install epel -y
 
 # Do the actual rpm build
 @INCLUDE Dockerfile.rpmbuild