FROM alpine:latest RUN apk add --no-cache python3 py-pip openssl ca-certificates bash git sudo zip rsync \ && apk --no-cache add --virtual build-dependencies build-base python3-dev libffi-dev openssl-dev curl \ && pip install --upgrade pip cffi \ && pip install ansible \ && pip install --upgrade pycrypto pywinrm \ && apk --no-cache add sshpass openssh-client \ && apk del build-dependencies RUN addgroup -S ansible && adduser -S ansible -G ansible USER ansible WORKDIR /home/ansible CMD ["ansible-playbook", "--version"]