commit 1251f74d3862eceb905f6e8fbc83ce71d5b523ac Author: Jim Nicholson Date: Wed Jan 19 17:49:07 2022 -0800 dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1a87abd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +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"] + +