-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (24 loc) · 879 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Start from the Gitpod workspace full image
FROM gitpod/workspace-full
USER root
# Install Chrome dependencies
RUN apt-get update && apt-get install -y \
wget \
gnupg2 \
lsof \
apt-transport-https \
ca-certificates \
x11-utils xdg-utils xvfb \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*
# Add the Google Chrome repository
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
# Install Google Chrome
RUN apt-get update && apt-get install -y google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
USER gitpod
# Add the Chrome as a path variable
ENV CHROME_BIN=/usr/bin/google-chrome
# Check if Chrome was installed successfully
RUN google-chrome --version