Initial commit
This commit is contained in:
commit
23ab1e1b09
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
# original: https://github.com/William-Yeh/docker-ansible/blob/master/alpine3/Dockerfile
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN echo "===> Adding Python runtime..." && \
|
||||
apk add --no-cache py3-pip openssl ca-certificates sshpass openssh-client && \
|
||||
apk add --no-cache --virtual build-dependencies \
|
||||
python3-dev libffi-dev openssl-dev build-base && \
|
||||
\
|
||||
pip3 install --upgrade pip && \
|
||||
\
|
||||
echo "===> Installing Ansible..." && \
|
||||
pip3 install ansible && \
|
||||
\
|
||||
echo "===> Removing package list..." && \
|
||||
apk del build-dependencies && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN mkdir /ansible
|
||||
|
||||
WORKDIR /ansible
|
||||
|
||||
CMD ["/usr/bin/ansible-playbook", "--version"]
|
||||
Loading…
Reference in New Issue
Block a user