From 02db8f6f27004ea424d3bcfd4c82d3af121571d6 Mon Sep 17 00:00:00 2001 From: Chirag-Bhatti Date: Fri, 28 Jul 2023 09:43:47 +0100 Subject: [PATCH] feat: update bundle install steps in Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 791d1744f..defc1cc8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN apk add --no-cache build-base yarn postgresql-dev git bash RUN gem install bundler:2.3.14 --no-document COPY .ruby-version Gemfile Gemfile.lock /app/ -RUN bundle config set without "development" +RUN bundle config set without "development test" RUN bundle install --jobs=4 --no-binstubs --no-cache COPY package.json yarn.lock /app/ @@ -47,6 +47,9 @@ CMD bundle exec rails s -e ${RAILS_ENV} -p ${PORT} --binding=0.0.0.0 FROM base as staging +RUN bundle config set without "development" +RUN bundle install --jobs=4 --no-binstubs --no-cache + CMD bundle exec rails s -e ${RAILS_ENV} -p ${PORT} --binding=0.0.0.0 FROM base as production