forked from clue/docker-webgrind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (19 loc) · 785 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu
MAINTAINER Christian Lück <[email protected]>
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
nginx supervisor php5-fpm php5-cli \
graphviz python \
git
# add webgrind as the only nginx site
ADD webgrind.nginx.conf /etc/nginx/sites-available/webgrind
RUN ln -s /etc/nginx/sites-available/webgrind /etc/nginx/sites-enabled/webgrind
RUN rm /etc/nginx/sites-enabled/default
# install webgrind from git
RUN git clone https://github.com/jokkedk/webgrind /var/www
RUN chown www-data:www-data -R /var/www
# expose only nginx HTTP port
EXPOSE 80
# expose default directory where we look for cachegrind files
VOLUME /tmp
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD supervisord -c /etc/supervisor/conf.d/supervisord.conf