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 ARG BUILDER_CACHE_BUSTER=
8 RUN touch /var/lib/rpm/* && yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
10 # Do the actual rpm build
11 @INCLUDE Dockerfile.rpmbuild
13 # Do a test install and verify
14 # Can be skipped with skiptests=1 in the environment
15 # @EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest