Skip to content

Run agent-browser install as coder user in Docker#4

Merged
f3l1x merged 4 commits intomasterfrom
claude/install-agent-browser-465IC
Mar 27, 2026
Merged

Run agent-browser install as coder user in Docker#4
f3l1x merged 4 commits intomasterfrom
claude/install-agent-browser-465IC

Conversation

@f3l1x
Copy link
Copy Markdown
Member

@f3l1x f3l1x commented Mar 26, 2026

Summary

Modified the Docker build process to execute the agent-browser install command as the coder user instead of the root user.

Key Changes

  • Changed agent-browser install to runuser -u coder -- agent-browser install in the Dockerfile
  • This ensures the agent-browser installation runs with the appropriate user permissions rather than as root

Implementation Details

The change uses runuser to switch to the coder user context before executing the installation command. This is a security and permission best practice that ensures the agent-browser package is installed with the correct user ownership and permissions, preventing potential permission issues when the container runs as the coder user.

https://claude.ai/code/session_01MukmmJhsNvpwRmVAqAQvd8

claude added 4 commits March 26, 2026 18:46
The agent-browser install (which downloads Chromium) was only run as root.
Adding a second install after USER coder ensures Chromium is available
in the coder user's home directory at runtime.

https://claude.ai/code/session_01MukmmJhsNvpwRmVAqAQvd8
Use `runuser -u coder -- agent-browser install` in the root RUN block
so Chromium is installed into the coder user's home directory in-place,
instead of a separate RUN layer after USER coder.

https://claude.ai/code/session_01MukmmJhsNvpwRmVAqAQvd8
Add claude/** branches to push trigger so the test job runs on
feature branch pushes. Docker Hub push remains gated to master only.

https://claude.ai/code/session_01MukmmJhsNvpwRmVAqAQvd8
Remove branches filter from push trigger so the test job runs on
pushes to any branch. Docker Hub push remains gated to master only.

https://claude.ai/code/session_01MukmmJhsNvpwRmVAqAQvd8
@f3l1x f3l1x merged commit fe9bd2f into master Mar 27, 2026
2 checks passed
@f3l1x f3l1x deleted the claude/install-agent-browser-465IC branch March 28, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants