-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0393efc
commit 6ee81b0
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Build images | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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 \ | ||
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/ \ | ||
&& userdel ubuntu \ | ||
&& useradd \ | ||
--system \ | ||
--no-create-home \ | ||
--uid 1000 \ | ||
nonroot \ | ||
&& rm /etc/.pwd.lock \ | ||
&& 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"repository": "jellyfin/jellyfin" | ||
} |