1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00
dockerfiles/webkit/Dockerfile
2014-12-29 23:31:39 +08:00

27 lines
740 B
Docker

#
# Dockerfile for webkit/phantomjs
#
FROM ubuntu:14.04
MAINTAINER kev
RUN echo "Asia/Shanghai" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6 nginx monit
RUN mkdir -p /data/ /webkit/includes/
ADD ./*.js /webkit/
ADD ./includes/ /webkit/includes/
ADD ./bin/ /usr/local/bin/
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
VOLUME /data/
EXPOSE 80 1024 2812 9001
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf