Skip to content

Conversation

@edenreich
Copy link
Contributor

Summary

  • Refactored Dockerfile to install browsers with system dependencies as root, then install Playwright driver as non-root user
  • Ensures proper ownership of cache directories and browser binaries
  • Addresses potential permission issues during browser installation

Changes

  • Install browsers with --with-deps as root user (includes system dependencies)
  • Create cache directory after browser installation with proper ownership
  • Install Playwright driver as agent user to ensure correct permissions

Test plan

  • Build Docker image with default browser engine (chromium)
  • Build Docker image with all browser engines
  • Verify browser automation works correctly
  • Confirm no permission errors in container logs

🤖 Generated with Claude Code

Install browsers with system dependencies as root, then install Playwright driver as non-root user. This ensures proper ownership of cache directories and browser binaries.

Changes:
- Install browsers with --with-deps as root user
- Create cache directory after browser installation
- Install Playwright driver as agent user to ensure proper permissions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@edenreich edenreich merged commit 088ac1e into main Nov 25, 2025
1 check passed
@edenreich edenreich deleted the fix/playwright-installation-order branch November 25, 2025 10:04
ig-semantic-release-bot bot pushed a commit that referenced this pull request Nov 25, 2025
## [0.4.7](v0.4.6...v0.4.7) (2025-11-25)

### 🐛 Bug Fixes

* Improve Playwright installation order in Dockerfile ([#47](#47)) ([088ac1e](088ac1e))
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.4.7 🎉

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