Skip to content

Commit b09dc2c

Browse files
authored
added Chrome to the template (#82)
1 parent 2841b6f commit b09dc2c

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

template/e2b.Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN yes | unminimize && \
2525
# XFCE desktop environment:
2626
apt-get install -y xfce4 xfce4-goodies && \
2727
# Basic system utilities:
28-
apt-get install -y util-linux sudo curl git && \
28+
apt-get install -y util-linux sudo curl git wget && \
2929
# Pip will be used to install Python packages:
3030
apt-get install -y python3-pip && \
3131
# Tools used by the desktop SDK:
@@ -67,8 +67,17 @@ RUN apt-get install -y software-properties-common && \
6767
apt-get install -y --no-install-recommends \
6868
firefox-esr
6969

70+
# Install Chrome
71+
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
72+
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
73+
apt-get update && \
74+
apt-get install -y google-chrome-stable
75+
76+
# Copy Chrome desktop shortcut
77+
COPY google-chrome.desktop /usr/share/applications/google-chrome.desktop
78+
7079
# Install VS Code
71-
RUN apt-get install wget apt-transport-https && \
80+
RUN apt-get install apt-transport-https && \
7281
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
7382
add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" && \
7483
apt-get update -y && \

template/google-chrome.desktop

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Name=Google Chrome
4+
Exec=/usr/bin/google-chrome-stable --no-first-run --no-default-browser-check --password-store=basic
5+
Terminal=false
6+
Icon=google-chrome
7+
Type=Application
8+
Categories=Network;WebBrowser;
9+
MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;
10+
StartupWMClass=Google-chrome

0 commit comments

Comments
 (0)