2014-12-25 11:07:50 +02:00
|
|
|
#
|
2014-12-25 12:50:18 +02:00
|
|
|
# Dockerfile for webkit/phantomjs
|
2014-12-25 11:07:50 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER kev
|
|
|
|
|
2014-12-29 12:00:53 +02:00
|
|
|
RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6 monit nginx
|
|
|
|
RUN mkdir -p /data/ /webkit/includes/
|
2014-12-25 11:07:50 +02:00
|
|
|
|
2014-12-25 12:50:18 +02:00
|
|
|
ADD ./*.js /webkit/
|
|
|
|
ADD ./includes/ /webkit/includes/
|
|
|
|
ADD ./bin/ /usr/local/bin/
|
2014-12-29 12:23:58 +02:00
|
|
|
ADD ./etc/haproxy.cfg /etc/haproxy/
|
|
|
|
ADD ./etc/supervisor/supervisord.conf /etc/supervisor/
|
|
|
|
ADD ./etc/supervisor/conf.d/ /etc/supervisor/conf.d/
|
|
|
|
ADD ./etc/monit/conf.d/ /etc/monit/conf.d/
|
|
|
|
ADD ./etc/nginx.cfg /etc/nginx/sites-enabled/default
|
2014-12-25 12:41:39 +02:00
|
|
|
|
2014-12-25 13:34:44 +02:00
|
|
|
VOLUME /data/
|
2014-12-29 12:00:53 +02:00
|
|
|
EXPOSE 80 1024 2812 9001
|
2014-12-25 11:07:50 +02:00
|
|
|
|
|
|
|
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
|
|
|
|
|