From 607fc9e8b8490ba5a94228a9d323fc91ce397790 Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 22 Jan 2025 17:29:43 +0800 Subject: [PATCH] chore: update asset precompilation command - Change the precompilation command to include RAILS_BUILD=1 - This modification allows for environment-specific builds without altering the existing secret handling This update enhances the flexibility of the asset precompilation process during deployment while maintaining the required application security measures. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eab28b8..726c028 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,7 @@ COPY . . RUN bundle exec bootsnap precompile app/ lib/ # Precompiling assets for production without requiring secret RAILS_MASTER_KEY -RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile +RUN RAILS_BUILD=1 SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile RUN rm -rf node_modules