FROM debian:bookworm-slim RUN apt-get update --yes && apt-get upgrade --yes && apt-get install --yes python3 python3-pip openssh-client sshpass && rm -rf /var/lib/apt/lists/* RUN groupadd -r ansible && useradd -m -r -g ansible ansible USER ansible RUN pip install ansible WORKDIR /home/ansible ENV PATH="${PATH}:/home/ansible/.local/bin" COPY --chown=ansible:ansible . /home/ansible RUN ansible-galaxy install -vvvv -r requirements.yml