From 1251f74d3862eceb905f6e8fbc83ce71d5b523ac Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Wed, 19 Jan 2022 17:49:07 -0800 Subject: [PATCH] dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 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"] + +