-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (24 loc) · 931 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
# Use an official Python runtime as a parent image
FROM nikolaik/python-nodejs:python3.12-nodejs18-slim
# 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
CMD ["python", "main.py"]