Skip to content

Instantly share code, notes, and snippets.

@pixelicous
Created January 29, 2019 22:24
Show Gist options
  • Save pixelicous/6dba204c0b770a1501de004e0f031eee to your computer and use it in GitHub Desktop.
Save pixelicous/6dba204c0b770a1501de004e0f031eee to your computer and use it in GitHub Desktop.
Ansible provision docker image
FROM phusion/baseimage:0.9.15
RUN apt-get update && \
apt-get install -y python python-dev python-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip install ansible
RUN ansible-galaxy install \
Ansibles.hostname \
Ansibles.apt \
Ansibles.build-essential \
Ansibles.perl \
Ansibles.monit \
ANXS.nginx
ADD site.yml /srv/ansible/site.yml
CMD ["/sbin/my_init"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment