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