FROM ruby:2.7.2 RUN apt-get update -qq && apt-get install -y nodejs postgresql-client USER root RUN mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile COPY Gemfile.lock /myapp/Gemfile.lock RUN gem install bundler:2.1.4 RUN bundle COPY . /myapp EXPOSE 50051 CMD ["rake", "run_server"]