ansible-role-nginx/tests/dockerfiles/Dockerfile.ubuntu-bionic
Alessandro Fael Garcia 7c66da1ee4 Fix Ubuntu Artful and Ubuntu Bionic Dockerfiles
Explicitly install init dependency
2018-06-27 15:13:17 -07:00

16 lines
443 B
Docker

FROM ubuntu:bionic
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y software-properties-common && rm -rf /var/lib/apt/lists/*
RUN apt-add-repository -y ppa:ansible/ansible && apt-get update && apt-get install -y \
git \
ansible \
apt-transport-https \
curl \
init \
&& rm -rf /var/lib/apt/lists/*
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
ENTRYPOINT ["/sbin/init"]