dockerfile
This commit is contained in:
commit
1251f74d38
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -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"]
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user