Newer
Older
ENV PATH="/opt/ansible/bin:$PATH"
RUN apk --no-cache add python3 && \
apk --no-cache add --virtual build-dependencies ${ANSIBLE_BUILD_DEPENDENCIES} && \
pip3 install --ignore-installed --no-cache-dir --upgrade --disable-pip-version-check pip setuptools wheel && \
pip3 install --ignore-installed --no-cache-dir ansible ${ANSIBLE_PACKAGES} && \
RUN apk --no-cache add python3 && \
apk --no-cache add ${ANSIBLE_RUNTIME_DEPENDENCIES} && \
COPY --from=builder /opt/ansible /opt/ansible
CMD [ "ansible", "--version" ]