FROM ubuntu:26.04 ENV DEBIAN_FRONTEND=noninteractive # Create jenkins user (UID 1001 to avoid conflicts with existing users) RUN groupadd -g 1001 jenkins && \ useradd -u 1001 -g 1001 -m -s /bin/bash jenkins RUN apt-get update && \ apt-get install -y --no-install-recommends \ python3 \ clang-format \ cmake \ ninja-build \ git \ g++ \ make \ ca-certificates \ openssh-client \ pkg-config \ qtbase5-dev \ qt6-base-dev \ qt6-base-dev-tools \ qt6-tools-dev \ qt6-tools-dev-tools \ lcov && \ rm -rf /var/lib/apt/lists/* # Set Qt platform for headless testing ENV QT_QPA_PLATFORM=offscreen # Configure git for containerized environments RUN git config --global --add safe.directory "*" WORKDIR /workspace # Switch to non-root user USER jenkins