forked from feederbox826/stash-s6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hwaccel-jf.Dockerfile
58 lines (55 loc) · 2.48 KB
/
hwaccel-jf.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# syntax=docker/dockerfile:1
ARG UPSTREAM_IMAGE="docker.io/library/stash-s6"
ARG COMPUTE_RUNTIME_VERSION="23.30.26918.9"
FROM ${UPSTREAM_IMAGE}:hwaccel-base
ENV HWACCEL="Jellyfin-ffmpeg"
ARG ARCHITECTURE="amd64"
COPY stash-files/jellyfin.sources /etc/apt/sources.list.d/jellyfin.sources
RUN \
echo "**** install non-free helper packages ****" && \
sed -i \
's/main contrib/main contrib non-free non-free-firmware/g' \
/etc/apt/sources.list.d/debian.sources && \
apt-get update && \
apt-get install -y \
--no-install-recommends \
--no-install-suggests \
intel-gpu-tools \
vainfo && \
echo "**** install jellyfin-ffmpeg ****" && \
mkdir -p \
/etc/apt/keyrings && \
curl -fsSL \
https://repo.jellyfin.org/jellyfin_team.gpg.key | \
gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg && \
sed -i -r \
"s/ARCHITECTURE/$ARCHITECTURE/g" \
"/etc/apt/sources.list.d/jellyfin.sources" && \
apt-get update && \
apt-get install -y \
jellyfin-ffmpeg6 && \
echo "**** install intel compute-runtime ****" && \
cd /tmp && \
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.14828.8/intel-igc-core_1.0.14828.8_amd64.deb && \
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.14828.8/intel-igc-opencl_1.0.14828.8_amd64.deb && \
wget https://github.com/intel/compute-runtime/releases/download/${COMPUTE_RUNTIME_VERSION}/intel-level-zero-gpu-dbgsym_1.3.26918.9_amd64.ddeb && \
wget https://github.com/intel/compute-runtime/releases/download/${COMPUTE_RUNTIME_VERSION}/intel-level-zero-gpu_1.3.26918.9_amd64.deb &&\
wget https://github.com/intel/compute-runtime/releases/download/${COMPUTE_RUNTIME_VERSION}/intel-opencl-icd-dbgsym_${COMPUTE_RUNTIME_VERSION}_amd64.ddeb && \
wget https://github.com/intel/compute-runtime/releases/download/${COMPUTE_RUNTIME_VERSION}/intel-opencl-icd_${COMPUTE_RUNTIME_VERSION}_amd64.deb && \
wget https://github.com/intel/compute-runtime/releases/download/${COMPUTE_RUNTIME_VERSION}/libigdgmm12_22.3.0_amd64.deb && \
dpkg -i *.deb && \
echo "**** linking jellyfin ffmpeg ****" && \
ln -s \
/usr/lib/jellyfin-ffmpeg/ffmpeg \
/usr/bin/ffmpeg && \
ln -s \
/usr/lib/jellyfin-ffmpeg/ffprobe \
/usr/bin/ffprobe && \
echo "**** cleanup ****" && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/* \
/var/log/*