Add SECRET_KEY_BASE_DUMMY
Some checks failed
Build and Publish Docker Container / build (push) Failing after 4m4s

This commit is contained in:
Joshua Coles 2023-10-04 15:15:19 +01:00
parent 6c8d2544e0
commit 0281abfecb

View File

@ -37,8 +37,8 @@ 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 ./bin/rails tailwindcss:build
RUN RAILS_ENV=production BUILD_STAGE=docker ./bin/rails assets:precompile
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