openSUSE: speed up package building and testing

This commit is contained in:
Dmitry Maksyoma
2022-11-25 01:22:28 +13:00
parent e68c9aef30
commit df70b38db6
2 changed files with 5 additions and 17 deletions

View File

@@ -14,7 +14,10 @@ RUN zypper -n install -y \
tree \
vim
# Cache repo updates, so that spec changes don't trigger it on every build.
RUN zypper refresh
COPY opensuse/*.spec /tmp
RUN zypper -n install $(grep BuildRequires /tmp/*.spec | cut -d' ' -f2 | xargs)
RUN useradd -u 1000 -m -d /home/docker docker && \