FROM ruby:2.7.0

# Install NodeJS apt sources
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -

# Add Chrome source
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list

RUN apt-get update -qq
RUN apt-get install -y nodejs libnss3 libgconf-2-4 google-chrome-stable
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Disable Chrome sandbox
RUN sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' "/opt/google/chrome/google-chrome"

RUN gem update --system
RUN gem install bundler

RUN npm install -g yarn

Add image for Ruby 2.7
Add image for Ruby 2.7
