aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.javascript
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.javascript
parent8f1d9fa477434368a7f41fb2896bf1be6b048c8a (diff)
Break neovim into separate images. Makes it quicker to compile new
changes
Diffstat (limited to 'Dockerfile.javascript')
-rw-r--r--Dockerfile.javascript15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile.javascript b/Dockerfile.javascript
new file mode 100644
index 0000000..592f58a
--- /dev/null
+++ b/Dockerfile.javascript
@@ -0,0 +1,15 @@
+FROM thornycrackers/neovim:php
+MAINTAINER Cody Hiar <codyfh@gmail.com>
+
+# Install nodejs 6
+RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
+RUN apt-get install -y \
+ nodejs
+
+# Install JS linting modules
+# The reason for the version specifications is an 'Unmet peerDependancy error'
+# https://github.com/airbnb/javascript/issues/952
+RUN npm install -g eslint@\^2.10.2 eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y@\^1.2.2
+
+# Install the eslintrc.json
+ADD eslintrc.json /root/.eslintrc.json