Browse Source

Use Yarn production install for asset compile (#24232)

closed-social-glitch-2
Nick Schonning 1 year ago
committed by GitHub
parent
commit
e7e189fa44
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      .github/workflows/test-ruby.yml
  2. +1
    -1
      Dockerfile

+ 1
- 1
.github/workflows/test-ruby.yml View File

@ -40,7 +40,7 @@ jobs:
ruby-version: .ruby-version ruby-version: .ruby-version
bundler-cache: true bundler-cache: true
- run: yarn install --frozen-lockfile
- run: yarn --frozen-lockfile --production
- name: Precompile assets - name: Precompile assets
# Previously had set this, but it's not supported # Previously had set this, but it's not supported
# export NODE_OPTIONS=--openssl-legacy-provider # export NODE_OPTIONS=--openssl-legacy-provider

+ 1
- 1
Dockerfile View File

@ -37,7 +37,7 @@ RUN apt-get update && \
bundle config set --local without 'development test' && \ bundle config set --local without 'development test' && \
bundle config set silence_root_warning true && \ bundle config set silence_root_warning true && \
bundle install -j"$(nproc)" && \ bundle install -j"$(nproc)" && \
yarn install --pure-lockfile --network-timeout 600000 && \
yarn install --pure-lockfile --production --network-timeout 600000 && \
yarn cache clean yarn cache clean
FROM node:${NODE_VERSION} FROM node:${NODE_VERSION}

Loading…
Cancel
Save