Skip to content

Commit 29e9ecc

Browse files
committed
Update the Dockerfile
1 parent 9771cda commit 29e9ecc

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# SeleniumBase Docker Image
2-
FROM ubuntu:22.04
2+
FROM ubuntu:24.04
33
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
44
ENV PYTHONUNBUFFERED=1
55
ENV PYTHONIOENCODING=UTF-8
6+
ENV DEBIAN_FRONTEND=noninteractive
67

78
#======================
89
# Locale Configuration
@@ -23,49 +24,39 @@ RUN locale-gen en_US.UTF-8
2324
#===========================
2425
# Fingerprint Configuration
2526
#===========================
26-
RUN apt install -y xvfb fonts-liberation fonts-noto-color-emoji libvulkan1 libnss3 libatk-bridge2.0-0 libcups2 libxcomposite1 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2
27+
RUN apt-get update
28+
RUN apt install -y fonts-liberation fonts-noto-color-emoji libvulkan1 libnss3 libatk-bridge2.0-0 libcups2 libxcomposite1 libxrandr2 libgbm1 libpango-1.0-0 libcairo2
2729
RUN apt install -y fonts-freefont-ttf fonts-dejavu-core fonts-ubuntu fonts-roboto fonts-droid-fallback
2830

2931
#======================
3032
# Install Common Fonts
3133
#======================
3234
RUN apt-get update
3335
RUN apt-get install -y \
34-
fonts-liberation \
3536
fonts-liberation2 \
3637
fonts-font-awesome \
37-
fonts-ubuntu \
3838
fonts-terminus \
3939
fonts-powerline \
4040
fonts-open-sans \
4141
fonts-mononoki \
42-
fonts-roboto \
4342
fonts-lato
4443

4544
#============================
4645
# Install Linux Dependencies
4746
#============================
4847
RUN apt-get update
4948
RUN apt-get install -y \
50-
libasound2 \
51-
libatk-bridge2.0-0 \
5249
libatk1.0-0 \
5350
libatspi2.0-0 \
54-
libcups2 \
5551
libdbus-1-3 \
5652
libdrm2 \
57-
libgbm1 \
5853
libgtk-3-0 \
5954
libnspr4 \
60-
libnss3 \
6155
libu2f-udev \
62-
libvulkan1 \
6356
libwayland-client0 \
64-
libxcomposite1 \
6557
libxdamage1 \
6658
libxfixes3 \
67-
libxkbcommon0 \
68-
libxrandr2
59+
libxkbcommon0
6960

7061
#==========================
7162
# Install useful utilities
@@ -96,13 +87,20 @@ RUN rm ./google-chrome-stable_current_amd64.deb
9687
#================
9788
# Install Python
9889
#================
90+
RUN apt-get update && apt-get install -y software-properties-common
91+
RUN add-apt-repository ppa:deadsnakes/ppa -y
92+
RUN apt-get update
93+
RUN apt-get install -y python3.13 python3.13-venv python3.13-dev build-essential
94+
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.13 1
95+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
96+
RUN python3.13 -m ensurepip --upgrade
97+
RUN python3.13 -m pip install --upgrade pip
9998
RUN apt-get update
100-
RUN apt-get install -y python3 python3-pip python3-setuptools python3-dev python3-tk
99+
RUN apt-get install -y python3.13-tk python3.13-dev
101100
RUN alias python=python3
102101
RUN echo "alias python=python3" >> ~/.bashrc
103-
RUN apt-get -qy --no-install-recommends install python3.10
104102
RUN rm /usr/bin/python3
105-
RUN ln -s python3.10 /usr/bin/python3
103+
RUN ln -s python3.13 /usr/bin/python3
106104

107105
#===============
108106
# Cleanup Lists
@@ -128,6 +126,8 @@ RUN pip install --upgrade pip setuptools wheel
128126
RUN cd /SeleniumBase && ls && pip install -r requirements.txt --upgrade
129127
RUN cd /SeleniumBase && pip install .
130128
RUN pip install pyautogui
129+
RUN pip install playwright
130+
RUN seleniumbase get chromium
131131

132132
#=======================
133133
# Download chromedriver

0 commit comments

Comments
 (0)