diff --git a/packages/playwright-core/package.json b/packages/playwright-core/package.json index 5cd795434a..a55dce630e 100644 --- a/packages/playwright-core/package.json +++ b/packages/playwright-core/package.json @@ -26,7 +26,7 @@ "./lib/image_tools/colorUtils": "./lib/image_tools/colorUtils.js", "./lib/cli/cli": "./lib/cli/cli.js", "./lib/cli/program": "./lib/cli/program.js", - "./lib/containers/docker": "./lib/containers/docker.js", + "./lib/server/registry/index": "./lib/server/registry/index.js", "./lib/remote/playwrightServer": "./lib/remote/playwrightServer.js", "./lib/server": "./lib/server/index.js", "./lib/utils": "./lib/utils/index.js", diff --git a/utils/linux-browser-dependencies/inside_docker/list_dependencies.js b/utils/linux-browser-dependencies/inside_docker/list_dependencies.js index bf7603034c..c99c784e30 100644 --- a/utils/linux-browser-dependencies/inside_docker/list_dependencies.js +++ b/utils/linux-browser-dependencies/inside_docker/list_dependencies.js @@ -4,7 +4,7 @@ const fs = require('fs'); const util = require('util'); const path = require('path'); const {spawn} = require('child_process'); -const {registryDirectory} = require('playwright-core/lib/server'); +const {registryDirectory} = require('playwright-core/lib/server/registry/index'); const readdirAsync = util.promisify(fs.readdir.bind(fs)); const readFileAsync = util.promisify(fs.readFile.bind(fs)); diff --git a/utils/linux-browser-dependencies/inside_docker/process.sh b/utils/linux-browser-dependencies/inside_docker/process.sh index bcd4eb6ac5..19d11c954c 100755 --- a/utils/linux-browser-dependencies/inside_docker/process.sh +++ b/utils/linux-browser-dependencies/inside_docker/process.sh @@ -2,14 +2,18 @@ set -e set +x -# Install Node.js +export DEBIAN_FRONTEND=noninteractive +export TZ=America/Los_Angeles -apt-get update && apt-get install -y curl && \ +# Install Node.js +apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates && \ + apt-get install -y --no-install-recommends curl && \ curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ - apt-get install -y nodejs + apt-get install -y --no-install-recommends nodejs # Install apt-file -apt-get update && apt-get install -y apt-file && apt-file update +apt-get update && apt-get install -y --no-install-recommends apt-file && apt-file update # Install tip-of-tree playwright-core and browsers mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install