forked from javanile/vtiger-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
executable file
·19 lines (15 loc) · 1.08 KB
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM javanile/vtiger:%{version}
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y --no-install-recommends inotify-tools zip unzip vim nano iputils-ping gettext && \
pecl install -f xdebug-2.7.2 && \
docker-php-ext-enable xdebug && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN curl -sL -o /usr/local/bin/phpcs https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && chmod +x /usr/local/bin/phpcs
RUN curl -sL -o /usr/local/bin/phpcbf https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar && chmod +x /usr/local/bin/phpcbf
RUN curl https://phar.phpunit.de/phpunit.phar -L -o /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit
RUN curl -sL https://javanile.github.io/inotifywait-polling/setup.sh | bin=/usr/local/bin/inotifywait-polling bash -
COPY debug.sh /usr/local/bin/debug
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
COPY xdebug-test.php /var/www/html/xdebug-test.php
RUN echo "<?php phpinfo();" > /var/www/html/phpinfo.php