Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
[feat] import firefox Dockerfile from jessfraz
Browse files Browse the repository at this point in the history
The Docker images on her Docker hub are not updated for 5 months now.
https://hub.docker.com/r/jess/firefox/tags
  • Loading branch information
schra committed Mar 9, 2022
1 parent 3a5b5ba commit 2f14403
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
39 changes: 39 additions & 0 deletions firefox/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is originally by Jessie Frazelle and is licensed under the MIT
# license.
#
# https://github.com/jessfraz/dockerfiles/blob/b11b7d2fb3df244af9b765e862db36a5cd9a4c63/firefox/Dockerfile

FROM debian:sid-slim
LABEL maintainer "Jessie Frazelle <[email protected]>"

RUN apt-get update && apt-get install -y \
dirmngr \
gnupg \
--no-install-recommends \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0AB215679C571D1C8325275B9BDB3D89CE49EC21 \
&& echo "deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial main" >> /etc/apt/sources.list.d/firefox.list \
&& apt-get update && apt-get install -y \
apulse \
ca-certificates \
ffmpeg \
firefox \
hicolor-icon-theme \
libasound2 \
libgl1-mesa-dri \
libgl1-mesa-glx \
libpulse0 \
fonts-noto \
fonts-noto-cjk \
fonts-noto-color-emoji \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

ENV LANG en-US

COPY local.conf /etc/fonts/local.conf

RUN echo 'pref("browser.tabs.remote.autostart", false);' >> /etc/firefox/syspref.js

COPY entrypoint.sh /usr/bin/startfirefox

ENTRYPOINT [ "startfirefox" ]
10 changes: 10 additions & 0 deletions firefox/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# This file is originally by Jessie Frazelle and is licensed under the MIT
# license.

if [[ -e /dev/snd ]]; then
exec apulse firefox "$@"
else
exec firefox "$@"
fi
35 changes: 35 additions & 0 deletions firefox/local.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version='1.0'?>
<!-- This file is originally by Jessie Frazelle and is licensed under the MIT license. -->
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>

0 comments on commit 2f14403

Please sign in to comment.