dockers/ansible/Dockerfile
shockrah a54ded29e8
Some checks failed
Build Ansible Image / build-ansible-image (push) Failing after 19s
Build Ansible Image / push-to-docker-hub (push) Failing after 2s
Fixing push paths
2024-09-29 18:24:09 -07:00

23 lines
660 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
MAINTAINER shockrah :^)
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 && \
python3 -m ensurepip && \
pip3 install --upgrade pip cffi && \
pip3 install ansible ansible-lint && \
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
mkdir -p /etc/ansible && \
echo localhost > /etc/ansible/hosts
CMD ["ansible-playbook", "--version"]