# This is a relatively minimal base image build; it's intended as a derivation # point. # # This container build uses nested containerization to construct # a target rootfs from scratch; so you must build with e.g. # podman build --security-opt=label=disable --cap-add=all --device /dev/fuse <...> # If you want to configure the input rpm-md repositories, just override this # container image. FROM quay.io/fedora/fedora:rawhide as repos # BOOTSTRAPPING: This can be any image that has the following packages. FROM quay.io/fedora/fedora:rawhide as builder RUN dnf -y install rpm-ostree selinux-policy-targeted sqlite # Copy in our source code. COPY . /src WORKDIR /src RUN --mount=type=cache,target=/workdir \ --mount=type=bind,from=repos,target=/repos \ --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared \ --mount=type=bind,from=repos,src=/,dst=/repos <