Sign inSign up

docker/sbx-kit-playwright:latest

Multi-platform
Manifest digest

sha256:5fd21f7c6db88048d2090250cbf976e6e011d5fdb11a0c2bd0602ba0e0847117

Last pushed

8 days by cdupuis

Type

Sandbox Kit

Manifest digest

sha256:5fd21f7c6db88048d2090250cbf976e6e011d5fdb11a0c2bd0602ba0e0847117

yaml
schemaVersion: "3"
displayName: Playwright
description: Playwright browser-automation toolchain for sandbox agents — the playwright CLI and @playwright/test v1.61.1 with Chromium, installed to a shared system browsers path so the agent user can run headless browser automation and end-to-end tests entirely inside the sandbox.
kind: mixin
provides:
    - [email protected]
capabilities:
    - type: com.docker.sandbox/network-policy@1
      config:
        install:
            allow:
                - archive.ubuntu.com
                - security.ubuntu.com
                - ports.ubuntu.com
                - download.docker.com
        runtime:
            allow:
                - cdn.playwright.dev
                - playwright.download.prss.microsoft.com
                - storage.googleapis.com
    - type: com.docker.sandbox/lifecycle@1
      config:
        install:
            - command: |
                set -euo pipefail
                playwright install-deps chromium
                rm -rf /var/lib/apt/lists/*
              description: Install Chromium's system libraries via apt — the overlay carries the browser tree, apt packages cannot travel in one
              env:
                - HTTP_PROXY
                - HTTPS_PROXY
              user: "0"
    - type: com.docker.sandbox/agent-context@1
      config:
        contentFile: /usr/share/sandbox/kit/playwright/playwright-context.md