From 3d304b22376e217216972ee66cc3ee1862dc96b6 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Sat, 7 Dec 2024 22:50:35 +0000 Subject: [PATCH] Add a few tweaks for speed --- Dockerfile | 4 +++- site-defaults.cfg | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 site-defaults.cfg diff --git a/Dockerfile b/Dockerfile index 3eaed7e..3264a1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,12 @@ LABEL org.opencontainers.image.authors="Carlos Mogas da Silva " maintainer="Carlos Mogas da Silva " RUN dnf update -y && dnf upgrade -y; \ - dnf install -y mock rpmdevtools jq; \ + dnf install -y mock rpmdevtools jq nosync; \ dnf clean all && rm -rf /var/cache/dnf/* COPY entrypoint.sh / RUN chmod +x /entrypoint.sh + +COPY site-defaults.cfg /etc/mock/ ENTRYPOINT ["/entrypoint.sh"] diff --git a/site-defaults.cfg b/site-defaults.cfg new file mode 100644 index 0000000..035a342 --- /dev/null +++ b/site-defaults.cfg @@ -0,0 +1,3 @@ +config_opts['nosync'] = True +config_opts['plugin_conf']['root_cache_opts']['compress_program'] = "" +config_opts['plugin_conf']['root_cache_opts']['extension'] = ""