Created
June 13, 2015 03:21
-
-
Save wulczer/79f46554db5b1d9372cc to your computer and use it in GitHub Desktop.
base Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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