Skip to content

Commit

Permalink
Add jellyfin image
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Jun 7, 2024
1 parent 4ecf789 commit f5e25f7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
on:
push:
branches:
- main

name: Build images

Expand Down
47 changes: 47 additions & 0 deletions images/jellyfin/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM ubuntu:24.04

ARG TARGETARCH

RUN \
case "${TARGETARCH}" in \
'amd64') \
export EXTRA_PKGS='intel-media-va-driver-non-free i965-va-driver mesa-va-drivers';; \
'arm64') \
export EXTRA_PKGS='libomxil-bellagio0 libomxil-bellagio-bin libraspberrypi0';; \
esac \
&& apt update \
&& apt install -y \
gnupg2 \
curl \
ca-certificates \
&& curl -fsSL "https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key" | apt-key add - \
&& echo "deb [arch=$TARGETARCH] https://repo.jellyfin.org/ubuntu noble main" > /etc/apt/sources.list.d/jellyfin.list \
&& apt update \
&& apt install -y \
jellyfin-server \
jellyfin-web \
jellyfin-ffmpeg6 \
&& apt upgrade -y \
&& export SUDO_FORCE_REMOVE=yes \
&& apt remove -y \
gnupg2 \
curl \
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt autoremove -y \
&& apt clean \
&& rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/ \
&& userdel ubuntu \
&& useradd \
--system \
--no-create-home \
--uid 1000 \
nonroot \
&& rm /etc/.pwd.lock \
&& mkdir /config \
&& chown 1000 /config

USER nonroot
ENTRYPOINT ["/usr/bin/jellyfin", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg", "--webdir=/usr/share/jellyfin/web", "--datadir=/config", "--cachedir=/config/cache"]
4 changes: 4 additions & 0 deletions images/jellyfin/latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

curl -s "https://api.github.com/repos/jellyfin/jellyfin/releases/latest" | jq -r '.tag_name'

0 comments on commit f5e25f7

Please sign in to comment.