Skip to content

Conversation

@edenreich
Copy link
Contributor

Summary

Fixed agent cache directory ownership in Dockerfile by ensuring the playwright cache directory is created with proper ownership before browser installation.

Changes

  • Created cache directory /home/agent/.cache/ms-playwright before playwright installation
  • Set correct ownership (agent:a2a) for the cache directory before browser installation
  • This prevents permission issues during container runtime

Benefits

  1. Prevents permission issues: Agent user has proper write access to cache directory
  2. Maintains security: Non-root agent user can properly access browser binaries
  3. Build consistency: Docker image builds successfully with correct ownership structure

The fix ensures that when the agent runs and checks for browser installation, it won't encounter permission issues accessing the cache directory at /home/agent/.cache/ms-playwright.

Ensure the playwright cache directory is created with proper ownership before browser installation to prevent permission issues during container runtime.
@edenreich edenreich changed the title fix: ensure proper cache directory ownership in Dockerfile fix: Ensure proper cache directory ownership in Dockerfile Nov 25, 2025
@edenreich edenreich merged commit 976c15c into main Nov 25, 2025
1 check passed
@edenreich edenreich deleted the fix/cache-permissions branch November 25, 2025 09:42
ig-semantic-release-bot bot pushed a commit that referenced this pull request Nov 25, 2025
## [0.4.6](v0.4.5...v0.4.6) (2025-11-25)

### 🐛 Bug Fixes

* Ensure proper cache directory ownership in Dockerfile ([#46](#46)) ([976c15c](976c15c))
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.4.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants