neko/.docker/firefox/Dockerfile

36 lines
1.2 KiB
Docker
Raw Permalink Normal View History

2021-03-29 22:09:09 +01:00
ARG BASE_IMAGE=m1k1o/neko:base
FROM $BASE_IMAGE
2020-06-17 00:32:34 +02:00
2021-07-04 20:15:56 +02:00
ARG SRC_URL="https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"
2020-06-17 00:32:34 +02:00
#
2021-07-04 20:15:56 +02:00
# install firefox
2020-06-17 00:32:34 +02:00
RUN set -eux; apt-get update; \
2021-07-04 20:15:56 +02:00
apt-get install -y --no-install-recommends openbox \
xz-utils bzip2 libgtk-3-0 libdbus-glib-1-2; \
2020-06-17 00:32:34 +02:00
#
2021-07-04 20:15:56 +02:00
# fetch latest release
wget -O /tmp/firefox-setup.tar.bz2 "${SRC_URL}"; \
mkdir /usr/lib/firefox; \
tar -xjf /tmp/firefox-setup.tar.bz2 -C /usr/lib; \
rm -f /tmp/firefox-setup.tar.bz2; \
ln -s /usr/lib/firefox/firefox /usr/bin/firefox; \
2020-06-17 00:32:34 +02:00
#
2021-07-06 12:32:04 +02:00
# create a profile directory
mkdir -p /home/neko/.mozilla/firefox/profile.default/extensions; \
chown -R neko:neko /home/neko/.mozilla/firefox/profile.default; \
#
2020-06-17 00:32:34 +02:00
# clean up
2021-07-04 20:15:56 +02:00
apt-get --purge autoremove -y xz-utils bzip2; \
2020-06-17 00:32:34 +02:00
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
#
# copy configuation files
COPY supervisord.conf /etc/neko/supervisord/firefox.conf
2021-07-04 20:15:56 +02:00
COPY neko.js /usr/lib/firefox/mozilla.cfg
COPY autoconfig.js /usr/lib/firefox/defaults/pref/autoconfig.js
COPY policies.json /usr/lib/firefox/distribution/policies.json
2021-07-06 12:32:04 +02:00
COPY --chown=neko profiles.ini /home/neko/.mozilla/firefox/profiles.ini
2020-06-17 00:32:34 +02:00
COPY openbox.xml /etc/neko/openbox.xml