@@ -3,12 +3,13 @@ FROM php:7.1-cli
33MAINTAINER Jakub Zalas <
[email protected] >
44
55ENV COMPOSER_ALLOW_SUPERUSER 1
6- ENV BUILD_DEPS="autoconf file g++ gcc libc-dev make pkg-config re2c"
6+ ENV BUILD_DEPS="autoconf file g++ gcc libc-dev make pkg-config re2c unzip "
77ENV LIB_DEPS="zlib1g-dev"
88ENV TOOL_DEPS="git graphviz"
99ENV PATH="$PATH:/root/.composer/vendor/bin:/root/QualityAnalyzer/bin:/root/DesignPatternDetector/bin"
1010
1111RUN apt-get update && apt-get install -y --no-install-recommends $TOOL_DEPS $BUILD_DEPS $LIB_DEPS && rm -rf /var/lib/apt/lists/* \
12+ && git clone https://github.com/nikic/php-ast.git && cd php-ast && phpize && ./configure && make && make install && cd .. && rm -rf php-ast && docker-php-ext-enable ast \
1213 && docker-php-ext-install zip \
1314 && echo "date.timezone=Europe/London" >> $PHP_INI_DIR/php.ini \
1415 && echo "memory_limit=-1" >> $PHP_INI_DIR/php.ini \
@@ -19,6 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends $TOOL_DEPS $BUI
1920 && curl -Ls https://github.com/dunglas/phpdoc-to-typehint/releases/download/v0.1.0/phpdoc-to-typehint.phar > /usr/local/bin/phpdoc-to-typehint && chmod +x /usr/local/bin/phpdoc-to-typehint \
2021 && curl -Ls https://github.com/phpmetrics/PhpMetrics/releases/download/v2.2.0/phpmetrics.phar > /usr/local/bin/phpmetrics && chmod +x /usr/local/bin/phpmetrics \
2122 && curl -Ls https://github.com/phpstan/phpstan/releases/download/0.7/phpstan-0.7.phar > /usr/local/bin/phpstan && chmod +x /usr/local/bin/phpstan \
23+ && curl -Ls https://github.com/etsy/phan/releases/download/0.9.3/phan.phar.zip > phan.phar.zip && unzip phan.phar.zip && rm phan.phar.zip && mv phan.phar /usr/local/bin/phan && chmod +x /usr/local/bin/phan \
2224 && curl -Ls https://phar.dephpend.com/dephpend.phar > /usr/local/bin/dephpend && chmod +x /usr/local/bin/dephpend \
2325 && curl -Ls http://phpdoc.org/phpDocumentor.phar > /usr/local/bin/phpDocumentor && chmod +x /usr/local/bin/phpDocumentor \
2426 && curl -Ls https://phar.phpunit.de/phpcpd.phar > /usr/local/bin/phpcpd && chmod +x /usr/local/bin/phpcpd \
0 commit comments