Install yarn and node 9 for discourse_dev.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Wed, 20 Dec 2017 17:05:01 +0000 (01:05 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Wed, 20 Dec 2017 17:05:01 +0000 (01:05 +0800)
image/discourse_dev/Dockerfile

index 6b4fa24987d80627d92bd36fce37dd6f4610bbe7..c8b36231230ad4a984bf4826de44475a3296940f 100644 (file)
@@ -40,5 +40,9 @@ ADD ensure-database /etc/runit/1.d/ensure-database
 
 RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&\
     echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list &&\
+    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&\
+    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list &&\
+    curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - &&\
     apt-get update &&\
-    apt-get install -y google-chrome-stable
+    apt-get install -y google-chrome-stable yarn nodejs &&\
+    npm install -g eslint babel-eslint