.devcontainer/Dockerfile
FROM ruby:2.7.5
# Adding NodeJS and Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
# Install dependencies and perform clean-up
RUN apt-get update -qq && apt-get install -y build-essential nodejs yarn mariadb-server mariadb-client libmariadb-dev redis-server \
&& apt-get -q clean \
&& rm -rf /var/lib/apt/lists
RUN service mysql restart
RUN service redis-server restart
ENV RAILS_ENV development
ENV RACK_ENV development
RUN gem install bundler foreman