FROM python:3.9-slim ARG UNAME=ansible # should match host ARG UID=1000 ARG GID=1000 RUN groupadd -g $GID -o $UNAME && \ useradd -m -u $UID -g $GID -s /bin/sh $UNAME && \ apt-get update && \ apt-get install -y sshpass && \ pip3 install --no-cache-dir ansible==2.10 && \ rm -rf /var/lib/apt/lists/* USER $UNAME COPY . /etc/ansible ENTRYPOINT []