From 68f926e26c3000c3060d802382fa1feee97984c8 Mon Sep 17 00:00:00 2001 From: Keijo Raamat Date: Tue, 10 Aug 2021 12:09:39 +0300 Subject: [PATCH] test and dev gems out from staging --- Dockerfile.generic | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.generic b/Dockerfile.generic index c0e0ee33..120e6455 100644 --- a/Dockerfile.generic +++ b/Dockerfile.generic @@ -2,14 +2,16 @@ FROM internetee/ruby:3.0-buster LABEL org.opencontainers.image.source=https://github.com/internetee/accreditation_center ARG RAILS_ENV ARG SECRET_KEY_BASE +ARG YARN_VER=1.22.10 ENV RAILS_ENV "$RAILS_ENV" ENV SECRET_KEY_BASE "$SECRET_KEY_BASE" RUN mkdir -p /opt/webapps/app/tmp/pids WORKDIR /opt/webapps/app +RUN npm install -g yarn@${YARN_VER} COPY . . -RUN gem install bundler && bundle update --bundler && bundle install +RUN gem install bundler && bundle update --bundler && bundle config set without 'development test' && bundle install +COPY package.json yarn.lock ./ RUN yarn install --check-files -RUN bundle exec rails webpacker:install -RUN bundle exec rails assets:precompile +RUN bundle exec rails assets:precompile \ No newline at end of file