aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.php
diff options
context:
space:
mode:
authorCody Hiar <cody.hiar@investopedia.com>2016-08-28 16:53:25 -0600
committerCody Hiar <cody.hiar@investopedia.com>2016-08-28 16:53:25 -0600
commit7641b3272fabd1112d30b5b1c07c32f6f9e51050 (patch)
tree696afa880ef927cf0123e69e96bff75727fe30d7 /Dockerfile.php
parent8f1d9fa477434368a7f41fb2896bf1be6b048c8a (diff)
Break neovim into separate images. Makes it quicker to compile new
changes
Diffstat (limited to 'Dockerfile.php')
-rw-r--r--Dockerfile.php25
1 files changed, 25 insertions, 0 deletions
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 <codyfh@gmail.com>
+
+# 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