Skip to content

Instantly share code, notes, and snippets.

@wulczer
Created June 13, 2015 03:21
Show Gist options
  • Save wulczer/79f46554db5b1d9372cc to your computer and use it in GitHub Desktop.
Save wulczer/79f46554db5b1d9372cc to your computer and use it in GitHub Desktop.
base Dockerfile
# Base image setup to run all the backend services
FROM debian:wheezy
RUN echo "deb http://http.debian.net/debian wheezy-backports main" > /etc/apt/sources.list.d/wheezy-backports.list && \
apt-get update && \
apt-get install --no-install-recommends -y -t wheezy-backports ansible
WORKDIR /srv/service/ansible
COPY ansible /srv/service/ansible
COPY requirements.txt /srv/service/
# Run Ansible to configure the Docker image
RUN ansible-playbook service.yml
WORKDIR /opt/service
CMD ["supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment