1
Fork 0

expose $DISPLAY and /tmp/.X11-unix to Docker container

This commit is contained in:
Conduitry 2023-03-23 21:55:18 -04:00
parent 49beedc24d
commit 5b1bbaaf23
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
cd "$(dirname "$(readlink --canonicalize "$0")")"
docker run --rm --volume "$PWD":/app:ro mcr.microsoft.com/playwright:v$(node --eval='console.log(require("./node_modules/playwright-core/package.json").version)') node /app $1
docker run --env DISPLAY --rm --volume "$PWD":/app:ro --volume /tmp/.X11-unix:/tmp/.X11-unix mcr.microsoft.com/playwright:v$(node --eval='console.log(require("./node_modules/playwright-core/package.json").version)') node /app $1