diff --git a/templates/Containerfile b/templates/Containerfile index a5923b8e..18d27c12 100644 --- a/templates/Containerfile +++ b/templates/Containerfile @@ -81,6 +81,7 @@ RUN \ --mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \ {%- endif %} --mount=type=bind,from=stage-exports,src=/exports.sh,dst=/tmp/exports.sh \ + --mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-{{ recipe.name }}-{{ recipe.image_version }},sharing=locked \ chmod +x /tmp/modules/{{ type }}/{{ type }}.sh \ && source /tmp/exports.sh && /tmp/modules/{{ type }}/{{ type }}.sh '{{ self::print_module_context(module) }}' {%- endif %}