diff --git a/template/e2b.Dockerfile b/template/e2b.Dockerfile index 5a6f572..56279ae 100644 --- a/template/e2b.Dockerfile +++ b/template/e2b.Dockerfile @@ -25,7 +25,7 @@ RUN yes | unminimize && \ # XFCE desktop environment: apt-get install -y xfce4 xfce4-goodies && \ # Basic system utilities: - apt-get install -y util-linux sudo curl git && \ + apt-get install -y util-linux sudo curl git wget && \ # Pip will be used to install Python packages: apt-get install -y python3-pip && \ # Tools used by the desktop SDK: @@ -67,8 +67,17 @@ RUN apt-get install -y software-properties-common && \ apt-get install -y --no-install-recommends \ firefox-esr +# Install Chrome +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ + echo "deb [arch=amd64] http://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 + +# Copy Chrome desktop shortcut +COPY google-chrome.desktop /usr/share/applications/google-chrome.desktop + # Install VS Code -RUN apt-get install wget apt-transport-https && \ +RUN apt-get install apt-transport-https && \ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" && \ apt-get update -y && \ diff --git a/template/google-chrome.desktop b/template/google-chrome.desktop new file mode 100644 index 0000000..d38c71d --- /dev/null +++ b/template/google-chrome.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=Google Chrome +Exec=/usr/bin/google-chrome-stable --no-first-run --no-default-browser-check --password-store=basic +Terminal=false +Icon=google-chrome +Type=Application +Categories=Network;WebBrowser; +MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https; +StartupWMClass=Google-chrome \ No newline at end of file