-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 1.12 KB
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
26
27
28
29
FROM debian:bullseye
LABEL maintainer="Fred <Fred@CreativeProjects.Tech>" \
version="webgrind-1.9.2"
# expose default directory where we look for cachegrind files
VOLUME /tmp/xdebug
# expose only nginx HTTP port
EXPOSE 80
RUN apt-get update && apt-get install -y \
nginx supervisor php-fpm php-cli \
graphviz python git build-essential zlib1g-dev \
# install webgrind from git and configure the default folder to be /tmp/xdebug
&& git clone --branch v1.9.2 --depth 1 https://github.com/jokkedk/webgrind.git /var/www/webgrind \
&& cd /var/www/webgrind && make && chown -R www-data.www-data /var/www/webgrind \
&& sed -ie "s|'/tmp'|'/tmp/xdebug'|g" config.php \
&& mkdir -p /tmp/xdebug && chown -R www-data.www-data /tmp/xdebug \
&& apt-get purge -y build-essential git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm /etc/nginx/sites-enabled/default
# add webgrind as the only nginx site
COPY webgrind.nginx.conf /etc/nginx/sites-enabled/webgrind
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD supervisord -c /etc/supervisor/conf.d/supervisord.conf