37 lines
1.5 KiB
Docker
37 lines
1.5 KiB
Docker
FROM debian:bookworm-slim
|
|
|
|
RUN apt-get update && apt-get install -y wget gnupg \
|
|
&& wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- \
|
|
| tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null \
|
|
&& gpg -n -q --no-options --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc \
|
|
| awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "\nThe key fingerprint matches ("$0").\n"; else print "\nVerification failed: the fingerprint ("$0") does not match the expected one.\n"}' \
|
|
&& echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" \
|
|
| tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null \
|
|
&& echo 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000\n' \
|
|
| tee /etc/apt/preferences.d/mozilla \
|
|
&& 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=C.UTF-8
|
|
|
|
COPY local.conf /etc/fonts/local.conf
|
|
|
|
RUN echo 'pref("browser.tabs.remote.autostart", false);' >> /usr/lib/firefox/defaults/pref/package-prefs.js
|
|
|
|
COPY entrypoint.sh /usr/bin/startfirefox
|
|
|
|
ENTRYPOINT [ "startfirefox" ]
|