diff --git a/scripts/dev/ci/docker/Dockerfile.j2 b/scripts/dev/ci/docker/Dockerfile.j2 index 18e5ba9c7..a452c95c1 100644 --- a/scripts/dev/ci/docker/Dockerfile.j2 +++ b/scripts/dev/ci/docker/Dockerfile.j2 @@ -42,7 +42,15 @@ RUN useradd user -u 1001 && \ chown user:users /home/user RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers # needed for makepkg -{% if not webengine %} +{% if webengine %} +# Needed for running PyPI Qt builds +USER user +RUN cd ~ && \ + git clone https://aur.archlinux.org/libxml2.13.git && \ + cd libxml2.13 && \ + makepkg -si --noconfirm +USER root +{% else %} RUN pacman -U --noconfirm \ https://archive.archlinux.org/packages/q/qt5-webkit/qt5-webkit-5.212.0alpha4-18-x86_64.pkg.tar.zst \ https://archive.archlinux.org/packages/p/python-pyqt5/python-pyqt5-5.15.7-2-x86_64.pkg.tar.zst \ @@ -67,14 +75,6 @@ RUN python3.10 -m ensurepip RUN python3.10 -m pip install tox pyqt5-sip {% endif %} -# Needed for running PyPI Qt builds -USER user -RUN cd ~ && \ - git clone https://aur.archlinux.org/libxml2.13.git && \ - cd libxml2.13 && \ - makepkg -si --noconfirm -USER root - {% if qt6 %} {% set pyqt_module = 'PyQt6' %} {% else %}