28 lines
883 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
set +x
export DEBIAN_FRONTEND=noninteractive
export TZ=America/Los_Angeles
# 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 --no-install-recommends nodejs
# Install apt-file
apt-get update && apt-get install -y --no-install-recommends apt-file && apt-file update
2021-10-11 10:52:17 -04:00
# 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
cp /root/hostfolder/inside_docker/list_dependencies.js /root/tmp/list_dependencies.js
FILENAME="RUN_RESULT"
if [[ -n $1 ]]; then
FILENAME=$1
fi
node list_dependencies.js | tee "/root/hostfolder/$FILENAME"