Write initial (untested) Dockerfile for Jellyfin

This commit is contained in:
Starbeamrainbowlabs 2020-09-05 21:33:34 +01:00
parent 39e173e2c6
commit 3b7a7374c2
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,33 @@
ARG REPO_LOCATION
# ARG BASE_VERSION
FROM ${REPO_LOCATION}minideb AS builder
RUN install_packages ca-certificates gnupg apt-transport-https curl
RUN curl -sS https://repo.jellyfin.org/jellyfin_team.gpg.key >/jellyfin.asc
########################################################################
FROM ${REPO_LOCATION}minideb
COPY --from=builder /jellyfin.asc /etc/apt/trusted.gpg.d/jellyfin.asc
RUN echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" >/etc/apt/sources.list.d/jellyfin.list \
&& mkdir -p /srv/cache /srv/config /srv/media \
&& install_packages ca-certificates mesa-va-drivers jellyfin jellyfin-ffmpeg openssl
# Might need to install 'locales' too, since it does that & configures it in the official Dockerfile
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
ENV LC_ALL en_GB.UTF-8
ENV LANG en_GB.UTF-8
ENV LANGUAGE en_GB:en
VOLUME /srv/cache /srv/config /srv/media
# Default port number: 8096
# Note to self: Consider mounting a tmpfs to /srv/cache in the Nomad config
ENTRYPOINT [ "/usr/bin/jellyfin", \
"--datadir", "/srv/config", \
"--cachedir", "/srv/cache", \
"--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg"]

1
images/jellyfin/type.txt Normal file
View file

@ -0,0 +1 @@
docker