11# SeleniumBase Docker Image
22FROM ubuntu:22.04
33SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
4+ ENV PYTHONUNBUFFERED=1
5+ ENV PYTHONIOENCODING=UTF-8
46
57# ======================
68# Locale Configuration
79# ======================
810RUN apt-get update
911RUN apt-get install -y --no-install-recommends tzdata locales
1012RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
11- ENV LANG en_US.UTF-8
12- ENV LANGUAGE en_US:en
13- ENV LC_ALL en_US.UTF-8
14- ENV TZ="America/New_York"
13+ ENV TZ=America/New_York
14+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
15+ ENV LANG=en_US.UTF-8
16+ ENV LANGUAGE=en_US:en
17+ ENV LC_ALL=en_US.UTF-8
18+ RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
19+ RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
20+ RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
21+ RUN locale-gen en_US.UTF-8
1522
1623# ======================
1724# Install Common Fonts
1825# ======================
1926RUN apt-get update
2027RUN apt-get install -y \
2128 fonts-liberation \
29+ fonts-liberation2 \
30+ fonts-font-awesome \
31+ fonts-ubuntu \
32+ fonts-terminus \
33+ fonts-powerline \
2234 fonts-open-sans \
2335 fonts-mononoki \
2436 fonts-roboto \
@@ -53,7 +65,7 @@ RUN apt-get install -y \
5365# Install useful utilities
5466# ==========================
5567RUN apt-get update
56- RUN apt-get install -y xdg-utils
68+ RUN apt-get install -y xdg-utils ca-certificates
5769
5870# =================================
5971# Install Bash Command Line Tools
@@ -72,9 +84,8 @@ RUN apt-get -qy --no-install-recommends install \
7284# ================
7385RUN apt-get update
7486RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
75- RUN dpkg -i google-chrome-stable_current_amd64.deb
76- RUN apt-get -fy --no-install-recommends install
77- RUN rm google-chrome-stable_current_amd64.deb
87+ RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
88+ RUN rm ./google-chrome-stable_current_amd64.deb
7889
7990# ================
8091# Install Python
@@ -90,6 +101,7 @@ RUN ln -s python3.10 /usr/bin/python3
90101# ===============
91102# Cleanup Lists
92103# ===============
104+ RUN apt-get clean
93105RUN rm -rf /var/lib/apt/lists/*
94106
95107# =====================
0 commit comments