2021-04-02 07:37:51 +13:00
|
|
|
ARG BASE_IMAGE=m1k1o/neko:base
|
|
|
|
FROM $BASE_IMAGE
|
2021-04-02 07:36:43 +13:00
|
|
|
|
2022-02-28 02:50:48 +13:00
|
|
|
ARG VERSION="98.0.4758.102-1"
|
2022-01-30 03:28:06 +13:00
|
|
|
|
2021-04-02 07:36:43 +13:00
|
|
|
#
|
|
|
|
# install neko chromium
|
2022-02-28 02:50:48 +13:00
|
|
|
RUN set -eux; \
|
|
|
|
echo "deb http://ftp.de.debian.org/debian bookworm main" >> /etc/apt/sources.list; \
|
|
|
|
apt-get update; \
|
2022-01-30 03:28:06 +13:00
|
|
|
apt-get install -y --no-install-recommends unzip chromium=$VERSION chromium-common=$VERSION chromium-sandbox=$VERSION openbox; \
|
2021-04-02 07:36:43 +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; \
|
|
|
|
#
|
|
|
|
# clean up
|
|
|
|
apt-get --purge autoremove -y unzip; \
|
|
|
|
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
|