Skip to content

Preserve base image PATH when using custom base images#134

Merged
bbrowning merged 1 commit intobbrowning:mainfrom
GrimmiMeloni:preserve-base-image-path
Mar 26, 2026
Merged

Preserve base image PATH when using custom base images#134
bbrowning merged 1 commit intobbrowning:mainfrom
GrimmiMeloni:preserve-base-image-path

Conversation

@GrimmiMeloni
Copy link
Copy Markdown
Contributor

Custom base images (e.g., golang) set PATH entries that were lost at runtime because Debian's /etc/profile unconditionally resets PATH when bash starts as a login shell inside the tmux session.

Fix by writing a /etc/profile.d/paude-path.sh script at build time that restores the full PATH after any profile reset, and by passing the entrypoint's correct PATH into the tmux session.

Custom base images (e.g., golang) set PATH entries that were lost at
runtime because Debian's /etc/profile unconditionally resets PATH when
bash starts as a login shell inside the tmux session.

Fix by writing a /etc/profile.d/paude-path.sh script at build time
that restores the full PATH after any profile reset, and by passing
the entrypoint's correct PATH into the tmux session.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bbrowning bbrowning merged commit 88e4afe into bbrowning:main Mar 26, 2026
6 checks passed
@bbrowning
Copy link
Copy Markdown
Owner

Nice, thank you!

@GrimmiMeloni GrimmiMeloni deleted the preserve-base-image-path branch March 30, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants