Add a few tweaks for speed

This commit is contained in:
Carlos Mogas da Silva 2024-12-07 22:50:35 +00:00
parent 03a51ae47d
commit 3d304b2237
2 changed files with 6 additions and 1 deletions

View file

@ -6,10 +6,12 @@ LABEL org.opencontainers.image.authors="Carlos Mogas da Silva <r3pek@r3pek.org>"
maintainer="Carlos Mogas da Silva <r3pek@r3pek.org>" maintainer="Carlos Mogas da Silva <r3pek@r3pek.org>"
RUN dnf update -y && dnf upgrade -y; \ 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/* dnf clean all && rm -rf /var/cache/dnf/*
COPY entrypoint.sh / COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
COPY site-defaults.cfg /etc/mock/
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

3
site-defaults.cfg Normal file
View file

@ -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'] = ""