From 0404871b433ba215377af3615d010cb981afc669 Mon Sep 17 00:00:00 2001 From: Pavel Smalenski Date: Fri, 27 Aug 2021 09:39:09 +0200 Subject: [PATCH] Fix error when building chrome image from beta channel --- static/chrome/apt/Dockerfile | 2 +- static/chrome/local/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/chrome/apt/Dockerfile b/static/chrome/apt/Dockerfile index a33b4e396..9507fd645 100644 --- a/static/chrome/apt/Dockerfile +++ b/static/chrome/apt/Dockerfile @@ -11,7 +11,7 @@ RUN \ echo 'deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google.list && \ apt-get update && \ apt-get -y --no-install-recommends install iproute2 $PACKAGE=$VERSION && \ - sed -i -e 's@exec -a "$0" "$HERE/chrome"@& --no-sandbox --disable-gpu@' /opt/google/chrome/google-chrome && \ + sed -i -e 's@exec -a "$0" "$HERE/chrome"@& --no-sandbox --disable-gpu@' /opt/google/$INSTALL_DIR/$PACKAGE && \ chown root:root /opt/google/$INSTALL_DIR/chrome-sandbox && \ chmod 4755 /opt/google/$INSTALL_DIR/chrome-sandbox && \ google-chrome --version && \ diff --git a/static/chrome/local/Dockerfile b/static/chrome/local/Dockerfile index c2e72acfa..9c15079fb 100644 --- a/static/chrome/local/Dockerfile +++ b/static/chrome/local/Dockerfile @@ -53,7 +53,7 @@ RUN \ curl -O http://host.docker.internal:8080/google-chrome.deb && \ apt-get -y purge curl && \ dpkg -i google-chrome.deb && \ - sed -i -e 's@exec -a "$0" "$HERE/chrome"@& --no-sandbox --disable-gpu@' /opt/google/$INSTALL_DIR/google-chrome && \ + sed -i -e 's@exec -a "$0" "$HERE/chrome"@& --no-sandbox --disable-gpu@' /opt/google/$INSTALL_DIR/$PACKAGE && \ rm google-chrome.deb && \ chown root:root /opt/google/$INSTALL_DIR/chrome-sandbox && \ chmod 4755 /opt/google/$INSTALL_DIR/chrome-sandbox && \