Skip to content

Commit

Permalink
Merge pull request #543 from alphagov/update-dockerfile
Browse files Browse the repository at this point in the history
Update assets precompile for EKS
  • Loading branch information
brucebolt authored Oct 17, 2024
2 parents b1675de + c073461 commit d561ff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ WORKDIR $APP_HOME
COPY Gemfile* .ruby-version ./
RUN bundle install
COPY package.json yarn.lock ./
RUN yarn install --immutable
RUN yarn install --production --frozen-lockfile --non-interactive --link-duplicates
COPY . .
RUN bootsnap precompile --gemfile .
RUN rails assets:precompile && rm -fr log

Expand Down
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class Application < Rails::Application
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")

# Path within public/ where assets are compiled to
config.assets.prefix = "/assets/govspeak-preview"

# Using a sass css compressor causes a scss file to be processed twice (once
# to build, once to compress) which breaks the usage of "unquote" to use
# CSS that has same function names as SCSS such as max
Expand Down

0 comments on commit d561ff5

Please sign in to comment.