1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:58:52 +02:00
dockerfiles/webkit/Dockerfile

31 lines
819 B
Docker
Raw Normal View History

2014-12-25 17:07:50 +08:00
#
2014-12-25 18:50:18 +08:00
# Dockerfile for webkit/phantomjs
2014-12-25 17:07:50 +08:00
#
FROM ubuntu:14.04
MAINTAINER kev
2014-12-29 19:46:46 +08:00
RUN echo "Asia/Shanghai" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2015-02-03 18:39:38 +08:00
RUN apt-get update && apt-get install -y supervisor haproxy nginx libfontconfig1 libfreetype6 fontconfig libicu52
2014-12-29 23:31:39 +08:00
RUN mkdir -p /data/ /webkit/includes/
2014-12-25 17:07:50 +08:00
2014-12-25 18:50:18 +08:00
ADD ./*.js /webkit/
ADD ./includes/ /webkit/includes/
ADD ./bin/ /usr/local/bin/
2014-12-29 18:23:58 +08:00
ADD ./etc/supervisor/supervisord.conf /etc/supervisor/
ADD ./etc/supervisor/conf.d/ /etc/supervisor/conf.d/
2014-12-30 17:01:57 +08:00
ADD ./etc/haproxy.cfg /etc/haproxy/
2014-12-29 18:23:58 +08:00
ADD ./etc/nginx.cfg /etc/nginx/sites-enabled/default
2014-12-30 17:01:57 +08:00
ADD ./etc/monitrc /etc/
ADD ./fonts/ /usr/local/share/fonts/
2014-12-25 18:41:39 +08:00
2014-12-30 13:05:20 +08:00
RUN chmod 600 /etc/monitrc
2014-12-30 17:01:57 +08:00
RUN fc-cache -f -v
2014-12-30 13:05:20 +08:00
2014-12-25 19:34:44 +08:00
VOLUME /data/
2014-12-29 18:00:53 +08:00
EXPOSE 80 1024 2812 9001
2014-12-25 17:07:50 +08:00
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf