1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/webkit/Dockerfile

27 lines
715 B
Docker
Raw Normal View History

2014-12-25 09:07:50 +00:00
#
2014-12-25 10:50:18 +00:00
# Dockerfile for webkit/phantomjs
2014-12-25 09:07:50 +00:00
#
FROM ubuntu:14.04
MAINTAINER kev
2014-12-29 11:46:46 +00:00
RUN echo "Asia/Shanghai" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2014-12-30 03:31:19 +00:00
RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6 nginx
2014-12-29 15:31:39 +00:00
RUN mkdir -p /data/ /webkit/includes/
2014-12-25 09:07:50 +00:00
2014-12-25 10:50:18 +00:00
ADD ./*.js /webkit/
ADD ./includes/ /webkit/includes/
ADD ./bin/ /usr/local/bin/
2014-12-29 10:23:58 +00:00
ADD ./etc/haproxy.cfg /etc/haproxy/
ADD ./etc/supervisor/supervisord.conf /etc/supervisor/
ADD ./etc/supervisor/conf.d/ /etc/supervisor/conf.d/
2014-12-30 03:31:19 +00:00
ADD ./etc/monitrc /etc/
2014-12-29 10:23:58 +00:00
ADD ./etc/nginx.cfg /etc/nginx/sites-enabled/default
2014-12-25 10:41:39 +00:00
2014-12-25 11:34:44 +00:00
VOLUME /data/
2014-12-29 10:00:53 +00:00
EXPOSE 80 1024 2812 9001
2014-12-25 09:07:50 +00:00
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf