2020-09-05 20:33:34 +00:00
|
|
|
ARG REPO_LOCATION
|
|
|
|
# ARG BASE_VERSION
|
|
|
|
|
|
|
|
FROM ${REPO_LOCATION}minideb AS builder
|
|
|
|
|
2020-09-05 20:35:55 +00:00
|
|
|
RUN install_packages ca-certificates apt-transport-https curl
|
2020-09-05 20:33:34 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-09-05 20:39:50 +00:00
|
|
|
RUN echo "deb [arch=$( dpkg --print-architecture )] http://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 \
|
2020-10-17 18:40:41 +00:00
|
|
|
&& install_packages ca-certificates mesa-va-drivers jellyfin jellyfin-ffmpeg openssl
|
2020-10-17 18:23:51 +00:00
|
|
|
# libraspberrypi0 = required by jellyfin-ffmpeg, apparently because of libmmal_core.so
|
2020-09-05 20:33:34 +00:00
|
|
|
# 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
|
|
|
|
|
2020-10-17 18:40:41 +00:00
|
|
|
# Don't forget to mount this directory from the host
|
|
|
|
ENV LD_LIBRARY_PATH /opt/vc/lib
|
|
|
|
|
2020-10-17 17:14:09 +00:00
|
|
|
ENV JELLYFIN_DATA_DIR /srv/data
|
|
|
|
ENV JELLYFIN_CONFIG_DIR /srv/config
|
|
|
|
ENV JELLYFIN_LOG_DIR /srv/logs
|
|
|
|
ENV JELLYFIN_CACHE_DIR /srv/cache
|
|
|
|
|
2020-10-17 18:40:41 +00:00
|
|
|
VOLUME /srv/data /srv/config /srv/logs /srv/cache /srv/media /srv/global_cache /srv/metadata /opt/vc/lib
|
2020-09-05 20:33:34 +00:00
|
|
|
|
2020-10-17 16:49:20 +00:00
|
|
|
USER 90:90
|
|
|
|
|
2020-09-05 20:33:34 +00:00
|
|
|
# Default port number: 8096
|
|
|
|
# Note to self: Consider mounting a tmpfs to /srv/cache in the Nomad config
|
|
|
|
ENTRYPOINT [ "/usr/bin/jellyfin", \
|
2020-10-17 17:08:53 +00:00
|
|
|
"--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg", \
|
|
|
|
"--webdir", "/usr/share/jellyfin/web" ]
|