From f21157824e8f7b7d16658c560c9737288f444614 Mon Sep 17 00:00:00 2001 From: Luiz Picolo Date: Thu, 7 Oct 2021 20:34:55 -0400 Subject: [PATCH] Added yarn and nodejs --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3aa560b..fea46ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,13 @@ FROM ruby:2.7.2 -RUN apt-get update && apt-get install -y -RUN apt-get install -y nodejs sqlite3 -RUN apt-get install npm -y +RUN apt-get update && apt-get install -y \ + curl \ + build-essential \ + curl -sL https://deb.nodesource.com/setup_12.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ + echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ + apt-get update && apt-get install -y nodejs yarn sqlite3 cron + WORKDIR /code COPY . /code