From 24993047c635b32f2d24e1edb613c25307c94f65 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Mon, 23 Sep 2024 03:30:17 +0300 Subject: [PATCH] build: speedup pacman --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d00f0c63..7be9a9a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,13 +25,13 @@ RUN echo "[multilib]" >> "/etc/pacman.conf" && \ echo "Include = /etc/pacman.d/mirrorlist" >> "/etc/pacman.conf" ## refresh packages, install sudo and install packages for building RUN pacman -Syu --noconfirm sudo && \ - pacman -Sy --noconfirm --asdeps fakeroot python-tox + pacman -S --noconfirm --asdeps fakeroot python-tox ## create build user RUN useradd -m -d "/home/build" -s "/usr/bin/nologin" build && \ echo "build ALL=(ALL) NOPASSWD: ALL" > "/etc/sudoers.d/build" COPY "docker/install-aur-package.sh" "/usr/local/bin/install-aur-package" ## install package dependencies -RUN pacman -Sy --noconfirm --asdeps \ +RUN pacman -S --noconfirm --asdeps \ devtools \ git \ pyalpm \ @@ -40,14 +40,14 @@ RUN pacman -Sy --noconfirm --asdeps \ python-pyelftools \ python-requests \ && \ - pacman -Sy --noconfirm --asdeps \ + pacman -S --noconfirm --asdeps \ base-devel \ python-build \ python-flit \ python-installer \ python-wheel \ && \ - pacman -Sy --noconfirm --asdeps \ + pacman -S --noconfirm --asdeps \ git \ python-aiohttp \ python-boto3 \