* implement new WidevineCdm extraction from crx3. * fix widevinecdm folder. * use m1k1o/go-crx3.
32 lines
1 KiB
Text
32 lines
1 KiB
Text
ARG BASE_IMAGE=ghcr.io/m1k1o/neko/nvidia-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 software-properties-common; \
|
||
# chromium-browser from default repo needs snap to be installed
|
||
# and nvidia base is ubuntu not debian
|
||
add-apt-repository ppa:system76/pop; \
|
||
apt-get update; \
|
||
apt-get install -y --no-install-recommends xz-utils chromium openbox; \
|
||
#
|
||
# install widevine module
|
||
CHROMIUM_DIR="/usr/lib/chromium"; \
|
||
./widevine.sh "${CHROMIUM_DIR}/WidevineCdm"; \
|
||
rm -f /widevine.sh; \
|
||
#
|
||
# clean up
|
||
apt-get --purge autoremove -y xz-utils; \
|
||
apt-get clean -y; \
|
||
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
||
|
||
#
|
||
# copy configuation files
|
||
COPY supervisord.nvidia.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
|