Skip to content

Instantly share code, notes, and snippets.

Last active January 9, 2019 19:40
What would you like to do?
FROM php:7.2-alpine
LABEL MAINTAINER="Mickaël Andrieu <>"
RUN apk add --update libxslt-dev && \
docker-php-ext-install xsl
RUN curl -fsSL | php \
&& mv composer.phar /usr/local/bin/composer
RUN composer global require 'edgedesign/phpqa' 'friendsofphp/php-cs-fixer' 'jakub-onderka/php-parallel-lint' 'phpstan/phpstan' 'vimeo/psalm' --no-progress --no-scripts --no-interaction
ENV PATH /root/.composer/vendor/bin:$PATH
ENTRYPOINT ["phpqa"]
CMD ["--help"]
Successfully tagged prestashop/phpqa:latest
The command "docker build -t prestashop/phpqa ." exited with 0.
0.44s$ docker run --rm -u $UID -v $PWD:/app prestashop/phpqa --report --ignoredDirs vendor
Could not open input file: /root/.composer/vendor/bin/phpqa
The command "docker run --rm -u $UID -v $PWD:/app prestashop/phpqa --report --ignoredDirs vendor" exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment