ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/awx-ee:0.2.0 ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest FROM $ANSIBLE_RUNNER_IMAGE as galaxy ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS= ADD _build /build WORKDIR /build RUN ansible-galaxy role install -r requirements.yml --roles-path /usr/share/ansible/roles RUN ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path /usr/share/ansible/collections FROM $ANSIBLE_RUNNER_IMAGE COPY --from=galaxy /usr/share/ansible /usr/share/ansible RUN alternatives --set python /usr/bin/python3 CMD /run.sh USER 1000 RUN git lfs install