Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update firefox image #527

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions firefox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
FROM debian:sid-slim
#Run firefox in a container:
#
#docker run -d --rm --net host \
# --device /dev/snd --device /dev/dri -v /dev/shm:/dev/shm \
# -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY \
# -v $HOME/Downloads:/home/user/Downloads \
# -v $HOME/.mozilla:/home/user/.mozilla \
# --name firefox jess/firefox
#

ARG DEBVERSION=bullseye-slim
FROM debian:$DEBVERSION
LABEL maintainer "Jessie Frazelle <[email protected]>"

ARG UBUVERSION=bionic
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 \
&& echo "deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu ${UBUVERSION} main" >> /etc/apt/sources.list.d/firefox.list \
&& apt-get update && apt-get install -y \
apulse \
ca-certificates \
Expand All @@ -23,12 +35,18 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

ENV LANG en-US
ENV LANG C.UTF-8

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

ARG USER=user
ARG HOME=/home/${USER}
RUN useradd --create-home --home-dir $HOME $USER && chown -R ${USER}:${USER} $HOME
WORKDIR $HOME
USER $USER

ENTRYPOINT [ "startfirefox" ]