Skip to content

Commit

Permalink
use apt to install yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Nov 25, 2016
1 parent e711700 commit f09c211
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion node4.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ RUN echo "Starting ..." && \
ln -s /root/.nvm/versions/node/v${NODE_VERSION} /root/.nvm/versions/node/current && \

npm install -g npm@3 && \
npm install -g yarn && \

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb http://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install yarn && \

echo "Done JS!" && \

Expand Down
5 changes: 4 additions & 1 deletion node6.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ RUN echo "Starting ..." && \
ln -s /root/.nvm/versions/node/v${NODE_VERSION} /root/.nvm/versions/node/current && \

npm install -g npm@3 && \
npm install -g yarn && \

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb http://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install yarn && \

echo "Done JS!" && \

Expand Down
6 changes: 5 additions & 1 deletion node7.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN echo "Starting ..." && \
apt-get clean && apt-get -qq update && \
apt-get -y install build-essential libssl-dev curl git subversion make mercurial \
libmcrypt-dev libreadline-dev ruby-full openssh-client && \

gem install sass --verbose && \
gem install scss_lint --verbose && \

Expand All @@ -26,7 +27,10 @@ RUN echo "Starting ..." && \
ln -s /root/.nvm/versions/node/v${NODE_VERSION} /root/.nvm/versions/node/current && \

npm install -g npm@3 && \
npm install -g yarn && \

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb http://dl.yarnpkg.com/debian/ stable main" >> /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install yarn && \

echo "Done JS!" && \

Expand Down

0 comments on commit f09c211

Please sign in to comment.