dockers/ansible/Dockerfile

19 lines
563 B
Docker
Raw Permalink Normal View History

2022-05-17 22:14:23 +00:00
# Inpsired by William Yeh's Docker image however this one is kept up to date
2024-09-30 01:14:06 +00:00
# with the latest base image versions available, and includes ansible-lint
2022-05-17 22:14:23 +00:00
FROM alpine:latest
2024-09-30 04:51:31 +00:00
RUN apk --update add sudo python3 git openssl ca-certificates openssh-client rsync && \
2022-05-17 22:14:23 +00:00
apk --update add --virtual build-dependencies \
2024-09-30 04:36:27 +00:00
python3-dev libffi-dev openssl-dev build-base \
ansible py3-ansible-lint && \
2022-05-17 22:14:23 +00:00
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
mkdir -p /etc/ansible && \
echo localhost > /etc/ansible/hosts
CMD ["ansible-playbook", "--version"]