From 512c78616e27be70c1680e62a4a7f4cd2f566a65 Mon Sep 17 00:00:00 2001 From: Kees Date: Sun, 3 Apr 2022 16:24:33 +0200 Subject: [PATCH] Update README.md --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 9611349..407973f 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,39 @@ public static class InstanceId } ``` +Using it in a Docker container +============================== + +``` +# Suppress an apt-key warning about standard out not being a terminal. Use in this script is safe. +ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn + +# export DEBIAN_FRONTEND="noninteractive" +ENV DEBIAN_FRONTEND noninteractive + +# Install deps + add Chrome Stable + purge all the things +RUN apt-get update && apt-get install -y \ + apt-transport-https \ + ca-certificates \ + curl \ + gnupg \ + --no-install-recommends \ + && curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \ + && echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \ + && apt-get update && apt-get install -y \ + google-chrome-stable \ + --no-install-recommends \ + && apt-get purge --auto-remove -y curl gnupg \ + && rm -rf /var/lib/apt/lists/* + +# Chrome Driver +RUN apt-get update && \ + apt-get install -y unzip && \ + wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip && \ + unzip chromedriver_linux64.zip && \ + mv chromedriver /usr/bin && rm -f chromedriver_linux64.zip +``` + Core Team ========= Sicos1977 (Kees van Spelde)