mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
d2ec13a236
* chromium arm64 widevine * brave arm64 widevine * firefox arm64 widevine * vivaldi arm64 widevine * Update browser.md for arm64 drm * add link to instruction * add widevine-installer * widevine base image, tools in utils, move files for chromiums * include installer in runtime * add runtime/widevine-installer in repo-structure
37 lines
1.3 KiB
Docker
37 lines
1.3 KiB
Docker
ARG BASE_IMAGE=ghcr.io/m1k1o/neko/base:latest
|
|
FROM $BASE_IMAGE
|
|
|
|
COPY ./widevinecdm.sh /widevine.sh
|
|
|
|
#
|
|
# install neko chromium
|
|
RUN set -eux; \
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends chromium chromium-common chromium-sandbox openbox; \
|
|
#
|
|
# install widevine module (only for amd64)
|
|
CHROMIUM_DIR="/usr/lib/chromium"; \
|
|
ARCH=$(dpkg --print-architecture); \
|
|
if [ "${ARCH}" = "amd64" ]; then \
|
|
apt-get install -y --no-install-recommends xz-utils; \
|
|
./widevine.sh "${CHROMIUM_DIR}/WidevineCdm"; \
|
|
rm -f /widevine.sh; \
|
|
apt-get --purge autoremove -y xz-utils; \
|
|
elif [ "${ARCH}" = "arm64" ]; then \
|
|
mkdir -p "${CHROMIUM_DIR}/WidevineCdm"; \
|
|
find /var/lib/widevine/WidevineCdm/ ! -name "WidevineCdm" -exec cp -RL {} "${CHROMIUM_DIR}/WidevineCdm/" \; ; \
|
|
else \
|
|
echo "Widevine is not supported on ${ARCH}"; \
|
|
fi; \
|
|
#
|
|
# clean up
|
|
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 --chown=neko preferences.json /home/neko/.config/chromium/Default/Preferences
|
|
COPY policies.json /etc/chromium/policies/managed/policies.json
|
|
COPY openbox.xml /etc/neko/openbox.xml
|