expose $DISPLAY and /tmp/.X11-unix to Docker container
This commit is contained in:
parent
49beedc24d
commit
5b1bbaaf23
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue