FROM jwilder/docker-gen VOLUME /tmp/dns.sock RUN apk add --no-cache dnsmasq bash wget RUN mkdir /app ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego RUN chmod u+x /usr/local/bin/forego ADD devdns.cfg /app/devdns.cfg ADD dnsmasq.conf /etc/dnsmasq.conf ADD resolv.conf /etc/resolv.conf ADD dnsmasq.hosts.conf.tmpl /app/dnsmasq.hosts.conf.tmpl ADD Procfile /app/Procfile WORKDIR /app ENTRYPOINT ["/usr/local/bin/forego","start","-r" ] # Create a DNS container that will automatically # create and update DNS entries for all containers # running on the host. # # Requires start using -v /var/run/docker.sock:/tmp/docker.sock # # Any container startd with a -e ALIAS arg will have that # alias associated with it's IP address