Skip to content

Commit

Permalink
Add jellyfin image
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienPatte committed Oct 26, 2024
1 parent 1a95325 commit ec79889
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- jellyfin #TODO: remove
schedule:
- cron: '0 0 * * *'

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

ARG TARGETARCH

RUN \
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 \
libsqlite3-0 \
&& 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/ \
/etc/apt/sources.list.d/jellyfin.list \
/etc/apt/trusted.gpg \
/etc/systemd/system/jellyfin.service.d/jellyfin.service.conf \
&& userdel ubuntu \
&& useradd \
--system \
--no-create-home \
--uid 1000 \
nonroot \
&& rm /etc/adduser.conf \
&& mkdir /config \
&& chown 1000 /config

ENV XDG_CACHE_HOME=/config/cache
USER nonroot
ENTRYPOINT ["/usr/bin/jellyfin", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg", "--webdir=/usr/share/jellyfin/web", "--datadir=/config"]
3 changes: 3 additions & 0 deletions images/jellyfin/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"repository": "jellyfin/jellyfin"
}

0 comments on commit ec79889

Please sign in to comment.