From 7641b3272fabd1112d30b5b1c07c32f6f9e51050 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sun, 28 Aug 2016 16:53:25 -0600 Subject: Break neovim into separate images. Makes it quicker to compile new changes --- Dockerfile.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile.php (limited to 'Dockerfile.php') diff --git a/Dockerfile.php b/Dockerfile.php new file mode 100644 index 0000000..7c05dfc --- /dev/null +++ b/Dockerfile.php @@ -0,0 +1,25 @@ +FROM thornycrackers/neovim:python +MAINTAINER Cody Hiar + +# Install packages +RUN apt-get update && apt-get install -y \ + curl \ + php5 + +# Download composer and move it to new location +RUN curl -sS https://getcomposer.org/installer | php +RUN mv composer.phar /usr/local/bin/composer + +# Update the path to include composer bins +ENV PATH "$PATH:/root/.composer/vendor/bin" + +# Composer install Code Sniff +RUN composer global require "squizlabs/php_codesniffer=*" +# Install Symfony 2 coding standard +RUN composer global require --dev escapestudios/symfony2-coding-standard:~2.0 + +# Add Symfony 2 coding standard to the phpcs paths +RUN phpcs --config-set installed_paths /root/.composer/vendor/escapestudios/symfony2-coding-standard + +# Install custom linting +ADD PEARish.xml /root/PEARish.xml -- cgit v1.2.3