main
sh 13 lines 483 Bytes
Raw
1 #!/bin/bash
2 set -e
3
4 # activate venv
5 . "/ins/setup_venv.sh" "$@"
6
7 # set PW installation path to temporary Browser runtime storage
8 export PLAYWRIGHT_BROWSERS_PATH=/a0/tmp/playwright
9 mkdir -p "$PLAYWRIGHT_BROWSERS_PATH"
10
11 # preinstall Chromium for fresh images; the Browser hook also reconciles self-updated installs
12 apt-get install -y fonts-unifont libnss3 libnspr4 libatk1.0-0 libatspi2.0-0 libxcomposite1 libxdamage1 libatk-bridge2.0-0 libcups2
13 patchright install chromium --no-shell