dockers/ansible/Dockerfile
shockrah ec7c4b2b65
All checks were successful
Build Ansible Image / build-ansible-image (push) Successful in 26s
Build Ansible Image / push-to-docker-hub (push) Successful in 11s
Fixing remaining packaging issues
2024-09-29 21:36:27 -07:00

19 lines
559 B
Docker

# Inpsired by William Yeh's Docker image however this one is kept up to date
# with the latest base image versions available, and includes ansible-lint
FROM alpine:latest
RUN apk --update add sudo python3 openssl ca-certificates openssh-client rsync && \
apk --update add --virtual build-dependencies \
python3-dev libffi-dev openssl-dev build-base \
ansible py3-ansible-lint && \
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
mkdir -p /etc/ansible && \
echo localhost > /etc/ansible/hosts
CMD ["ansible-playbook", "--version"]