1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:27 +02:00
dockerfiles/webkit/Dockerfile

27 lines
687 B
Docker
Raw Normal View History

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
RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6
2014-12-25 13:34:44 +02:00
RUN mkdir -p /data/ /webkit/includes/ /etc/supervisor/conf.d/ /etc/monit/conf.d/ /var/lib/monit/events/
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-25 11:07:50 +02:00
ADD ./haproxy.cfg /etc/haproxy/
ADD ./supervisor/supervisord.conf /etc/supervisor/
2014-12-25 12:50:18 +02:00
ADD ./supervisor/conf.d/ /etc/supervisor/conf.d/
ADD ./monit/monitrc /etc/monit/
ADD ./monit/conf.d/ /etc/monit/conf.d/
2014-12-25 11:07:50 +02:00
2014-12-25 12:41:39 +02:00
RUN chmod 600 /etc/monit/monitrc
2014-12-25 13:34:44 +02:00
VOLUME /data/
2014-12-25 12:02:48 +02:00
EXPOSE 1024 2812 9001
2014-12-25 11:07:50 +02:00
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf