1
1
# SeleniumBase Docker Image
2
2
FROM ubuntu:22.04
3
3
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
4
+ ENV PYTHONUNBUFFERED=1
5
+ ENV PYTHONIOENCODING=UTF-8
4
6
5
7
# ======================
6
8
# Locale Configuration
7
9
# ======================
8
10
RUN apt-get update
9
11
RUN apt-get install -y --no-install-recommends tzdata locales
10
12
RUN 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
15
22
16
23
# ======================
17
24
# Install Common Fonts
18
25
# ======================
19
26
RUN apt-get update
20
27
RUN apt-get install -y \
21
28
fonts-liberation \
29
+ fonts-liberation2 \
30
+ fonts-font-awesome \
31
+ fonts-ubuntu \
32
+ fonts-terminus \
33
+ fonts-powerline \
22
34
fonts-open-sans \
23
35
fonts-mononoki \
24
36
fonts-roboto \
@@ -53,7 +65,7 @@ RUN apt-get install -y \
53
65
# Install useful utilities
54
66
# ==========================
55
67
RUN apt-get update
56
- RUN apt-get install -y xdg-utils
68
+ RUN apt-get install -y xdg-utils ca-certificates
57
69
58
70
# =================================
59
71
# Install Bash Command Line Tools
@@ -72,9 +84,8 @@ RUN apt-get -qy --no-install-recommends install \
72
84
# ================
73
85
RUN apt-get update
74
86
RUN 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
78
89
79
90
# ================
80
91
# Install Python
@@ -90,6 +101,7 @@ RUN ln -s python3.10 /usr/bin/python3
90
101
# ===============
91
102
# Cleanup Lists
92
103
# ===============
104
+ RUN apt-get clean
93
105
RUN rm -rf /var/lib/apt/lists/*
94
106
95
107
# =====================
0 commit comments