Upgrade Rails to 7.1 rc2 to allow SECRET_KEY_BASE to function
Build and Publish Docker Container / build (push) Failing after 4m29s

This commit is contained in:
2023-10-04 17:03:44 +01:00
parent f7039fc42a
commit f3e4940d6b
3 changed files with 91 additions and 70 deletions
+3 -2
View File
@@ -37,8 +37,9 @@ RUN bundle exec bootsnap precompile app/ lib/
# Work around a bug in SASSC https://github.com/sass/sassc-ruby/issues/146
ENV BUNDLE_BUILD__SASSC=--disable-march-tune-native
RUN RAILS_ENV=production BUILD_STAGE=docker SECRET_KEY_BASE=1 ./bin/rails tailwindcss:build
RUN RAILS_ENV=production BUILD_STAGE=docker SECRET_KEY_BASE=1 ./bin/rails assets:precompile
# Depends on Rails 7.1
RUN RAILS_ENV=production BUILD_STAGE=docker SECRET_KEY_BASE_DUMMY=1 ./bin/rails tailwindcss:build
RUN RAILS_ENV=production BUILD_STAGE=docker SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
# Final stage for app image