Skip to content

Commit

Permalink
test and dev gems out from staging
Browse files Browse the repository at this point in the history
  • Loading branch information
keijoraamat committed Aug 10, 2021
1 parent 1e8d269 commit 68f926e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile.generic
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 68f926e

Please sign in to comment.