Skip to content

Commit

Permalink
Update the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jul 31, 2024
1 parent 84cbe3f commit ded5045
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
# SeleniumBase Docker Image
FROM ubuntu:22.04
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=UTF-8

#======================
# Locale Configuration
#======================
RUN apt-get update
RUN apt-get install -y --no-install-recommends tzdata locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV TZ="America/New_York"
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
RUN locale-gen en_US.UTF-8

#======================
# Install Common Fonts
#======================
RUN apt-get update
RUN apt-get install -y \
fonts-liberation \
fonts-liberation2 \
fonts-font-awesome \
fonts-ubuntu \
fonts-terminus \
fonts-powerline \
fonts-open-sans \
fonts-mononoki \
fonts-roboto \
Expand Down Expand Up @@ -53,7 +65,7 @@ RUN apt-get install -y \
# Install useful utilities
#==========================
RUN apt-get update
RUN apt-get install -y xdg-utils
RUN apt-get install -y xdg-utils ca-certificates

#=================================
# Install Bash Command Line Tools
Expand All @@ -72,9 +84,8 @@ RUN apt-get -qy --no-install-recommends install \
#================
RUN apt-get update
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb
RUN apt-get -fy --no-install-recommends install
RUN rm google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm ./google-chrome-stable_current_amd64.deb

#================
# Install Python
Expand All @@ -90,6 +101,7 @@ RUN ln -s python3.10 /usr/bin/python3
#===============
# Cleanup Lists
#===============
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*

#=====================
Expand Down

0 comments on commit ded5045

Please sign in to comment.