Added yarn and nodejs

This commit is contained in:
Luiz F Picolo 2021-10-07 20:34:55 -04:00
parent 9cbcc774c9
commit f21157824e

View File

@ -1,8 +1,13 @@
FROM ruby:2.7.2 FROM ruby:2.7.2
RUN apt-get update && apt-get install -y RUN apt-get update && apt-get install -y \
RUN apt-get install -y nodejs sqlite3 curl \
RUN apt-get install npm -y 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 WORKDIR /code
COPY . /code COPY . /code