# First do the source builds @INCLUDE Dockerfile.target.sdist # This defines the dstribution base layer # Put only the bare minimum of common commands here, without dev tools FROM amazonlinux:2 as dist-base RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # Do the actual rpm build @INCLUDE Dockerfile.rpmbuild # Do a test install and verify # Can be skipped with skiptests=1 in the environment # @EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest