This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] import firefox Dockerfile from jessfraz
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
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |