aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCody Hiar <cody.hiar@investopedia.com>2016-07-28 10:06:06 -0600
committerCody Hiar <cody.hiar@investopedia.com>2016-07-28 10:06:06 -0600
commitb52711cabe53ed466fce24fcf9d4377ba3c5292b (patch)
treecb89c56f8b612628ff448caa79cfdb7c93ebe584 /Dockerfile
parentaf1aee5668e5073298065a7f608aeeb8673f1b58 (diff)
Install Nodejs 6 as well as npm modules to handle the linting
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 58f790c..db4a4ea 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,6 +14,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d
# Install packages
RUN apt-get update && apt-get install -y \
software-properties-common \
+ curl \
python-dev \
python-pip \
python3-dev \
@@ -36,3 +37,14 @@ RUN git clone https://github.com/thornycrackers/.nvim.git /root/.config/nvim
RUN nvim +PlugInstall +qa
RUN nvim +UpdateRemotePlugins +qa
+# 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
+
+