This contains containers use for things like development environment and Fedora's custom OS All command is performed in the root directory
buildah build \
--layers=true \
-t os \
-f os/Dockerfile \
os/
buildah build \
--layers=true \
-t dev
-f dev/Dockerfile \
dev
After the first build, we can cache the dnf metadata by
mkdir -p $HOME/.cache/containers/fedora/39
podman run \
-v $HOME/.cache/containers/fedora/39:/var/cache/dnf:z \
-ti dev \
dnf makecache
Following build will become
buildah build \
--layers=true \
-v $HOME/.cache/containers/fedora/39:/var/cache/dnf:O \
-t dev \
-f dev/Dockerfile \
dev