Archived
2
0

opera fetch latest.

This commit is contained in:
Miroslav Šedivý 2022-11-20 14:41:36 +01:00
parent 407a85fffb
commit e067894e02
2 changed files with 20 additions and 15 deletions

View File

@ -1,24 +1,28 @@
ARG BASE_IMAGE=m1k1o/neko:base ARG BASE_IMAGE=m1k1o/neko:base
FROM $BASE_IMAGE FROM $BASE_IMAGE
ARG SRC_URL="https://download.opera.com/download/get/?id=58545&location=415&nothanks=yes&sub=marine&utm_tryagain=yes" 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"
ARG LIBFFMPEG_URL="https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/download/0.67.1/0.67.1-linux-x64.zip"
# #
# install opera # install opera
RUN apt-get update RUN set -eux; apt-get update; \
RUN wget -O /tmp/opera.deb $SRC_URL #
RUN apt-get install -y --no-install-recommends openbox unzip /tmp/opera.deb # fetch latest release
VERSION="$(wget -O - "${API_URL}" 2>/dev/null | sed -n 's/.*href="\([^"/]*\).*/\1/p' | tail -1)"; \
## install libffmpeg wget -O /tmp/opera.deb "${API_URL}${VERSION}/linux/opera-stable_${VERSION}_amd64.deb"; \
RUN wget -O /tmp/libffmpeg.zip $LIBFFMPEG_URL apt-get install -y --no-install-recommends openbox jq unzip /tmp/opera.deb; \
RUN unzip -o /tmp/libffmpeg.zip libffmpeg.so -d /usr/lib/x86_64-linux-gnu/opera/lib_extra #
RUN echo '[]' > /usr/lib/x86_64-linux-gnu/opera/resources/ffmpeg_preload_config.json # 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 # clean up
RUN apt-get clean -y apt-get --purge autoremove -y unzip jq; \
RUN rm -rf /var/lib/apt/lists/* /var/cache/apt/* apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
# #
# copy configuation files # copy configuation files

View File

@ -15,6 +15,7 @@
- Server: Refactored `xorg` - added `xevent` and clipboard is handled as event (no looped polling anymore). - Server: Refactored `xorg` - added `xevent` and clipboard is handled as event (no looped polling anymore).
- Introduced `NEKO_AUDIO_CODEC=` and `NEKO_VIDEO_CODEC=` as a new way of setting codecs. - Introduced `NEKO_AUDIO_CODEC=` and `NEKO_VIDEO_CODEC=` as a new way of setting codecs.
- Added CORS. - Added CORS.
- Opera versions are not hardcoded in Dockerfile anymore but automatically are fetch latest.
## [n.eko v2.6](https://github.com/m1k1o/neko/releases/tag/v2.6) ## [n.eko v2.6](https://github.com/m1k1o/neko/releases/tag/v2.6)