mirror of
https://github.com/linuxserver/docker-jellyfin.git
synced 2025-10-26 02:33:45 +09:00
48 lines
1.6 KiB
Docker
48 lines
1.6 KiB
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG JELLYFIN_RELEASE
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thelamer"
|
|
|
|
# environment settings
|
|
ARG DEBIAN_FRONTEND="noninteractive"
|
|
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
|
# https://github.com/dlemstra/Magick.NET/issues/707#issuecomment-785351620
|
|
ENV MALLOC_TRIM_THRESHOLD_=131072
|
|
|
|
RUN \
|
|
echo "**** install jellyfin *****" && \
|
|
curl -s https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | gpg --dearmor | tee /usr/share/keyrings/jellyfin.gpg >/dev/null && \
|
|
echo 'deb [arch=arm64 signed-by=/usr/share/keyrings/jellyfin.gpg] https://repo.jellyfin.org/ubuntu noble main' > /etc/apt/sources.list.d/jellyfin.list && \
|
|
if [ -z ${JELLYFIN_RELEASE+x} ]; then \
|
|
JELLYFIN_RELEASE=$(curl -sX GET https://repo.jellyfin.org/ubuntu/dists/noble/main/binary-amd64/Packages |grep -A 7 -m 1 'Package: jellyfin-server' | awk -F ': ' '/Version/{print $2;exit}'); \
|
|
fi && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
at \
|
|
libjemalloc2 \
|
|
libomxil-bellagio0 \
|
|
libomxil-bellagio-bin \
|
|
libraspberrypi0 \
|
|
xmlstarlet && \
|
|
apt-get install -y --no-install-recommends \
|
|
jellyfin=${JELLYFIN_RELEASE} && \
|
|
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
|
echo "**** cleanup ****" && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/*
|
|
|
|
# add local files
|
|
COPY root/ /
|
|
|
|
# ports and volumes
|
|
EXPOSE 8096 8920
|
|
VOLUME /config
|