FROM python:3.7-slim-buster ARG ANSIBLE_VERSION=2.8.5 ADD entrypoint.sh / RUN set -x \ && chmod +x /entrypoint.sh \ && pip3 install -U pip \ && pip3 install ansible==${ANSIBLE_VERSION} \ && rm -rf /root/.cache VOLUME /ansible ENTRYPOINT ["/entrypoint.sh"]