Skip to content

Commit 6039dd7

Browse files
justin808claude
andcommitted
Fix Docker build by adding SECRET_KEY_BASE to react_on_rails:locale task
The previous commit removed the ENV SECRET_KEY_BASE but the react_on_rails:locale task still requires it to initialize Rails. The SECRET_KEY_BASE is now set inline for both the locale task and asset precompilation, ensuring it's only used during build and not persisted in the final image. This fixes the deployment error: ArgumentError: Missing `secret_key_base` for 'production' environment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 85d051d commit 6039dd7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.controlplane/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ ENV RAILS_ENV=production \
6565
NODE_ENV=production
6666

6767
# These files hardly ever change
68-
RUN bin/rails react_on_rails:locale
68+
# SECRET_KEY_BASE is required for Rails initialization but is not persisted in the image
69+
RUN SECRET_KEY_BASE=precompile_placeholder bin/rails react_on_rails:locale
6970

7071
# These files change together, /app/lib/bs are temp build files for rescript,
7172
# and /app/client/app are the client assets that are bundled, so not needed once built

0 commit comments

Comments
 (0)