1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00
dockerfiles/renderjs/Dockerfile
2014-12-01 21:19:52 +08:00

23 lines
602 B
Docker

#
# Dockerfile for renderjs
#
FROM ubuntu:14.04
MAINTAINER kev
RUN apt-get update && apt-get install -y supervisor haproxy libfontconfig1 libfreetype6
ADD ./phantomjs /usr/local/bin/
ADD ./render.js /usr/local/bin/
ADD ./restart.sh /usr/local/bin/
ADD ./haproxy.cfg /etc/haproxy/
ADD ./supervisor/supervisord.conf /etc/supervisor/
ADD ./supervisor/conf.d/haproxy.conf /etc/supervisor/conf.d/
ADD ./supervisor/conf.d/renderjs.conf /etc/supervisor/conf.d/
ADD ./supervisor/conf.d/restart.conf /etc/supervisor/conf.d/
EXPOSE 1024 9001
CMD /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf