FROM registry.cyberbrain.pw/docker/alpine:latest RUN apk --no-cache add \ sudo \ python3 \ py3-pip \ openssl \ ca-certificates \ sshpass \ openssh-client \ rsync \ git && \ apk --no-cache add --virtual build-dependencies \ python3-dev \ libffi-dev \ openssl-dev \ rust \ build-base && \ pip3 install --no-cache-dir --upgrade \ pip \ cffi \ wheel && \ pip3 install --no-cache-dir \ ansible \ cryptography \ mitogen ansible-lint jmespath \ pywinrm && \ apk del build-dependencies && \ rm -rf /var/cache/apk/* && \ mkdir -p /opt/ansible && \ mkdir -p /etc/ansible && \ echo 'localhost' > /etc/ansible/hosts WORKDIR /opt/ansible CMD [ "ansible", "--version" ]