Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/.docker/opera/Dockerfile

32 lines
1.3 KiB
Docker
Raw Normal View History

2022-08-30 13:48:25 +12:00
ARG BASE_IMAGE=m1k1o/neko:base
FROM $BASE_IMAGE
2022-11-21 02:41:36 +13:00
ARG API_URL="https://download5.operacdn.com/pub/opera/desktop/"
ARG LIBFFMPEG_API_URL="https://api.github.com/repos/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/latest"
2022-08-30 13:48:25 +12:00
#
# install opera
2022-11-21 02:41:36 +13:00
RUN set -eux; apt-get update; \
#
# fetch latest release
VERSION="$(wget -O - "${API_URL}" 2>/dev/null | sed -n 's/.*href="\([^"/]*\).*/\1/p' | sort --version-sort | tail -1)"; \
2022-11-21 02:41:36 +13:00
wget -O /tmp/opera.deb "${API_URL}${VERSION}/linux/opera-stable_${VERSION}_amd64.deb"; \
apt-get install -y --no-install-recommends openbox jq unzip /tmp/opera.deb; \
#
# install libffmpeg
LIBFFMPEG_URL="$(wget -O - "${LIBFFMPEG_API_URL}" 2>/dev/null | jq -r "[.assets[] | select(.browser_download_url | contains(\"linux-x64.zip\"))][-1] | .browser_download_url")"; \
wget -O /tmp/libffmpeg.zip $LIBFFMPEG_URL; \
unzip -o /tmp/libffmpeg.zip libffmpeg.so -d /usr/lib/x86_64-linux-gnu/opera/lib_extra; \
echo '[]' > /usr/lib/x86_64-linux-gnu/opera/resources/ffmpeg_preload_config.json; \
#
# clean up
apt-get --purge autoremove -y unzip jq; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
2022-08-30 13:48:25 +12:00
#
# copy configuation files
2022-09-08 12:02:36 +12:00
COPY supervisord.conf /etc/neko/supervisord/opera.conf
2022-08-30 13:48:25 +12:00
COPY openbox.xml /etc/neko/openbox.xml
2022-09-07 12:43:33 +12:00