FROM ruby:<%= config %>

RUN curl -sS dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo “deb dl.yarnpkg.com/debian/ stable main” | tee /etc/apt/sources.list.d/yarn.list RUN apt-get update -qq && apt-get install -y build-essential git nodejs yarn

ENV APP_HOME /usr/src/app/ RUN mkdir $APP_HOME WORKDIR $APP_HOME

COPY Gemfile* $APP_HOME COPY lib/jumpstart $APP_HOME

ENV BUNDLE_PATH /gems RUN bundle update –bundler

RUN bundle install RUN yarn install –check-files

COPY . ./$APP_HOME RUN bundle install

COPY ./hosts.example /etc/hosts

CMD [“bin/rails”, “s”, “-b”, “0.0.0.0”]