diff --git a/images/cypress/Dockerfile b/images/cypress/Dockerfile index bc747dcf..99df5d0d 100644 --- a/images/cypress/Dockerfile +++ b/images/cypress/Dockerfile @@ -37,15 +37,21 @@ RUN apt-get update && \ && apt-get clean # install libappindicator3-1 - not included with Debian 11 -RUN wget --no-verbose /usr/src/libappindicator3-1_0.4.92-7_amd64.deb "http://ftp.us.debian.org/debian/pool/main/liba/libappindicator/libappindicator3-1_0.4.92-7_amd64.deb" && \ - dpkg -i /usr/src/libappindicator3-1_0.4.92-7_amd64.deb && \ - apt-get install -f -y && \ +RUN wget --no-verbose -O /usr/src/libappindicator3-1_0.4.92-7_amd64.deb "http://ftp.us.debian.org/debian/pool/main/liba/libappindicator/libappindicator3-1_0.4.92-7_amd64.deb" && \ + dpkg -i /usr/src/libappindicator3-1_0.4.92-7_amd64.deb ; \ + apt update && \ + apt --fix-broken install -y && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get clean && \ rm -f /usr/src/libappindicator3-1_0.4.92-7_amd64.deb # install Chrome browser RUN wget --no-verbose -O /usr/src/google-chrome-stable_current_amd64.deb "http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb" && \ - dpkg -i /usr/src/google-chrome-stable_current_amd64.deb && \ - apt-get install -f -y && \ + dpkg -i /usr/src/google-chrome-stable_current_amd64.deb ; \ + apt update && \ + apt --fix-broken install -y && \ + rm -rf /var/lib/apt/lists/* && \ + apt-get clean && \ rm -f /usr/src/google-chrome-stable_current_amd64.deb # "fake" dbus address to prevent errors @@ -67,8 +73,10 @@ RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stab RUN rm microsoft.gpg ## Install Edge -RUN apt-get update -RUN apt-get install -y microsoft-edge-dev +RUN apt-get update && \ + apt-get install -y microsoft-edge-dev \ + && rm -rf /var/lib/apt/lists/* \ + && apt-get clean # Add a link to the browser that allows Cypress to find it RUN ln -s /usr/bin/microsoft-edge /usr/bin/edge @@ -80,7 +88,7 @@ RUN echo " node version: $(node -v) \n" \ "debian version: $(cat /etc/debian_version) \n" \ "Chrome version: $(google-chrome --version) \n" \ "Firefox version: $(firefox --version) \n" \ - "Edge version: $(edge --version) \n" \ + "Edge version: $(edge --version) \n" \ "git version: $(git --version) \n" \ "whoami: $(whoami) \n"