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 yarn &&\
+ apt-get install -y google-chrome-stable yarn nodejs &&\
npm install -g eslint babel-eslint &&\
- cd /var/www/discourse && yarn install
+ cd /var/www/discourse && sudo -E -u discourse -H yarn install
WORKDIR /var/www/discourse
ENV LANG en_US.UTF-8