2020-06-30 19:45:45 +12:00
|
|
|
FROM m1k1o/neko:base
|
|
|
|
|
|
|
|
#
|
2020-07-14 20:02:40 +12:00
|
|
|
# install custom chromium build from woolyss with support for hevc/x265
|
2020-06-30 19:45:45 +12:00
|
|
|
RUN set -eux; apt-get update; \
|
2020-07-14 20:02:40 +12:00
|
|
|
apt-get install -y --no-install-recommends libatk1.0-0 libatk-bridge2.0-0 libatomic1 libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \
|
2020-08-15 10:50:54 +12:00
|
|
|
wget -O - /tmp/chromium.tar.xz "https://github.com/macchrome/linchrome/releases/download/v84.0.4147.125-r768962-portable-ungoogled-Lin64/ungoogled-chromium_84.0.4147.125_1.vaapi_linux.tar.xz" | \
|
2020-07-14 20:02:40 +12:00
|
|
|
tar -xJf- -C /usr/lib; \
|
2020-08-15 10:50:54 +12:00
|
|
|
mv /usr/lib/ungoogled-chromium_84.0.4147.125_1.vaapi_linux /usr/lib/chromium; \
|
2020-06-30 19:45:45 +12:00
|
|
|
#
|
2020-07-14 20:02:40 +12:00
|
|
|
# make required changes for sandbox mode
|
|
|
|
mv /usr/lib/chromium/chrome_sandbox /usr/lib/chromium/chrome-sandbox; \
|
|
|
|
chown root:root /usr/lib/chromium/chrome-sandbox; \
|
|
|
|
chmod 4755 /usr/lib/chromium/chrome-sandbox; \
|
2020-06-30 19:45:45 +12:00
|
|
|
#
|
|
|
|
# clean up
|
2020-07-14 20:02:40 +12:00
|
|
|
apt-get --purge autoremove -y xz-utils; \
|
2020-06-30 19:45:45 +12:00
|
|
|
apt-get clean -y; \
|
|
|
|
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
|
|
|
|
|
|
|
#
|
|
|
|
# copy configuation files
|
|
|
|
COPY supervisord.conf /etc/neko/supervisord/chromium.conf
|
2020-07-14 20:02:40 +12:00
|
|
|
COPY preferences.json /usr/lib/chromium/master_preferences
|
2020-06-30 19:45:45 +12:00
|
|
|
COPY policies.json /etc/chromium/policies/managed/policies.json
|
|
|
|
COPY openbox.xml /etc/neko/openbox.xml
|
2020-08-16 23:00:33 +12:00
|
|
|
|
|
|
|
#
|
|
|
|
# copy extensions and policy files
|
|
|
|
COPY ublock.json /usr/share/chromium/extensions/cjpalhdlnbpafiamejdnhcphjbkeiagm.json
|
|
|
|
COPY ublock.crx /tmp/cjpalhdlnbpafiamejdnhcphjbkeiagm.crx
|
|
|
|
COPY nordvpn.json /usr/share/chromium/extensions/fjoaledfpmneenckfbpdfhkmimnjocfa.json
|
|
|
|
COPY nordvpn.crx /tmp/fjoaledfpmneenckfbpdfhkmimnjocfa.crx
|