neko/.m1k1o/chromium/Dockerfile

40 lines
1.7 KiB
Docker
Raw Normal View History

2020-06-30 19:45:45 +12:00
FROM m1k1o/neko:base
ARG SRC_URL="https://github.com/macchrome/linchrome/releases/download/v88.0.4324.182-r827102-portable-ungoogled-Lin64/ungoogled-chromium_88.0.4324.182_1.vaapi_linux.tar.xz"
2020-08-17 04:51:31 +12:00
2020-06-30 19:45:45 +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; \
2021-02-10 09:20:53 +13:00
apt-get install -y --no-install-recommends wget unzip libatk1.0-0 libatk-bridge2.0-0 libatomic1 \
2020-08-17 04:51:31 +12:00
libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \
wget -O - /tmp/chromium.tar.xz "${SRC_URL}" | tar -xJf- -C /tmp; \
mv /tmp/ungoogled-chromium_* /usr/lib/chromium; \
2020-06-30 19:45:45 +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
#
2021-02-10 09:20:53 +13:00
# install widevine module
WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | tail -n 1); \
wget -O /tmp/widevine.zip "https://dl.google.com/widevine-cdm/$WIDEVINE_VERSION-linux-x64.zip"; \
unzip -p /tmp/widevine.zip libwidevinecdm.so > /usr/lib/chromium/libwidevinecdm.so; \
chmod 644 /usr/lib/chromium/libwidevinecdm.so; \
rm /tmp/widevine.zip; \
#
2020-06-30 19:45:45 +12:00
# clean up
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
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
#
# copy extensions and policy files
2020-08-17 04:47:05 +12:00
COPY extensions /usr/share/chromium/extensions