From acb4d65a6d6250de9a16ba9d11a8f0d41276bd39 Mon Sep 17 00:00:00 2001 From: Jan Czernin Date: Thu, 3 May 2018 01:16:43 +0200 Subject: [PATCH] Install nodejs & yarn --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 80b528d..4b4c8be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,13 @@ RUN apt-get update \ # Sylius PHP configuration COPY php/sylius.ini /usr/local/etc/php/conf.d/sylius.ini +# All things nodejs & yarn +RUN curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ + && echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ + && curl -sL http://deb.nodesource.com/setup_8.x | bash - \ + && apt-get install -y nodejs \ + && apt-get install yarn + # All things composer RUN php -r 'readfile("https://getcomposer.org/installer");' > composer-setup.php \ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \