2014-12-25 17:07:50 +08:00
|
|
|
#
|
|
|
|
# Dockerfile for webkit
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER kev
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6
|
2014-12-25 18:35:53 +08:00
|
|
|
RUN mkdir -p /usr/local/lib/webkit/ /etc/supervisor/conf.d/ /etc/monit/ /var/lib/monit/events/
|
2014-12-25 17:07:50 +08:00
|
|
|
|
2014-12-25 18:02:48 +08:00
|
|
|
ADD ./*.js ./includes /usr/local/lib/webkit/
|
|
|
|
ADD ./bin/* /usr/local/bin/
|
2014-12-25 17:07:50 +08:00
|
|
|
ADD ./haproxy.cfg /etc/haproxy/
|
|
|
|
ADD ./supervisor/supervisord.conf /etc/supervisor/
|
2014-12-25 18:02:48 +08:00
|
|
|
ADD ./supervisor/conf.d/* /etc/supervisor/conf.d/
|
2014-12-25 18:35:53 +08:00
|
|
|
ADD ./monit/ /etc/monit/
|
2014-12-25 17:07:50 +08:00
|
|
|
|
2014-12-25 18:02:48 +08:00
|
|
|
EXPOSE 1024 2812 9001
|
2014-12-25 17:07:50 +08:00
|
|
|
|
|
|
|
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
|
|
|
|
|