Added yarn and nodejs

This commit is contained in:
Luiz F Picolo 2021-10-07 20:34:55 -04:00
parent 9cbcc774c9
commit f21157824e
1 changed files with 8 additions and 3 deletions

View File

@ -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