From 781b5ab1dd7fe3dd11868979091c2181f1956c2d Mon Sep 17 00:00:00 2001 From: Alex Wegener Date: Thu, 24 Oct 2024 20:23:02 +0200 Subject: [PATCH] add firefox extension to hide cookie warnings --- computer-use-demo/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/computer-use-demo/Dockerfile b/computer-use-demo/Dockerfile index f3b00255..6ef68da2 100644 --- a/computer-use-demo/Dockerfile +++ b/computer-use-demo/Dockerfile @@ -57,6 +57,11 @@ RUN git clone --branch v1.5.0 https://github.com/novnc/noVNC.git /opt/noVNC && \ git clone --branch v0.12.0 https://github.com/novnc/websockify /opt/noVNC/utils/websockify && \ ln -s /opt/noVNC/vnc.html /opt/noVNC/index.html +# Install the 'I still don't care about cookies' extension +RUN curl -L -o /usr/lib/firefox-esr/browser/extensions/jid1-KKzOGWgsW3Ao4Q@jetpack.xpi \ + "https://addons.mozilla.org/firefox/downloads/latest/istilldontcareaboutcookies/addon-920220-latest.xpi" +RUN echo '{ "policies": { "Extensions": { "Install": [ "file:///usr/lib/firefox-esr/browser/extensions/jid1-KKzOGWgsW3Ao4Q@jetpack.xpi" ] } } }' > /usr/lib/firefox-esr/distribution/policies.json + # setup user ENV USERNAME=computeruse ENV HOME=/home/$USERNAME