Conversation
Edgeman-SelfID
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.envfiles in containers without requiring a customentrypoint.shKC_ENV_FILEfor env files mounted at non-default paths./start-nodeand direct environment injection behavior unchangedProblem
Local startup works because
./start-nodesources the repo root.envanddocker composeinjects the resolved values into each container.In standalone container deployments such as Kubernetes, operators may mount a
.envfile into the container, but the service does not automatically load that file unless they add a wrapper script to source and export it first.Solution
This PR adds a shared env-loading utility in
@mdip/commonand updates the runtime services to use it at startup.The loader now supports the following configuration patterns:
env/envFrom.envfile at/app/.envKC_ENV_FILEThe loader preserves existing behavior by not overriding variables already present in
process.env.