Closed NootThePenguin closed 4 years ago
You could (and probably should) combine it into a single RUN command:
# Install Widevine component for Chromium
RUN wget https://dl.google.com/widevine-cdm/4.10.1582.1-linux-x64.zip && \
unzip 4.10.1582.1-linux-x64.zip && \
sudo mv libwidevinecdm.so /usr/lib/chromium && \
sudo chmod 644 /usr/lib/chromium/libwidevinecdm.so && \
rm 4.10.1582.1-linux-x64.zip LICENSE.txt manifest.json
Cleaned up the snippet a bit and made so it fetches the latest version automatically:
# Install Widevine component for Chromium
RUN WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | tail -n 1) && \
wget "https://dl.google.com/widevine-cdm/$WIDEVINE_VERSION-linux-x64.zip" -O /tmp/widevine.zip && \
unzip -p /tmp/widevine.zip libwidevinecdm.so > /usr/lib/chromium/libwidevinecdm.so && \
chmod 644 /usr/lib/chromium/libwidevinecdm.so && \
rm /tmp/widevine.zip
Thanks for your contribution -- I'll merge it now!
This allows the Netflix player to work, it's currently using a beta version of widevine. (I've tried multiple versions and it has to be this one)
Closes #43