From: Guo Xiang Tan Date: Wed, 20 Dec 2017 06:37:03 +0000 (+0800) Subject: Install yarn in `discourse_test` image. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=45ef1e7c19b47e8107203cfdc6432782c8f08900;p=discourse_docker.git Install yarn in `discourse_test` image. --- diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 8cdef88..a9318ef 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -15,10 +15,12 @@ RUN gem update bundler --force &&\ 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 &&\ apt-get update &&\ - apt-get install -y google-chrome-stable &&\ + apt-get install -y google-chrome-stable yarn &&\ npm install -g eslint babel-eslint &&\ - cd /var/www/discourse && sudo -E -u discourse -H npm install chrome-launcher chrome-remote-interface + cd /var/www/discourse && yarn install WORKDIR /var/www/discourse ENV LANG en_US.UTF-8