From 78b91f302cefbe44879a2025edf44fde034f22d0 Mon Sep 17 00:00:00 2001 From: Eden Reich Date: Tue, 25 Nov 2025 11:40:10 +0200 Subject: [PATCH] fix: Set correct ownership for agent cache directory Ensure the playwright cache directory is created with proper ownership before browser installation to prevent permission issues during container runtime. --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 21e5599..fa9ea2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,6 +71,10 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh ENV PLAYWRIGHT_BROWSERS_PATH=/home/agent/.cache/ms-playwright +# Create and set ownership for cache directory before playwright installation +RUN mkdir -p /home/agent/.cache/ms-playwright && \ + chown -R agent:a2a /home/agent/.cache + # Install browsers based on build argument # Supports: chromium, firefox, webkit, or "all" for multiple browsers RUN if [ "$BROWSER_ENGINE" = "all" ]; then \