jellyfin: add globlal cache & metadata

This commit is contained in:
Starbeamrainbowlabs 2020-10-17 18:25:51 +01:00
parent 1090745353
commit ad05de9c9d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -14,7 +14,6 @@ FROM ${REPO_LOCATION}minideb
COPY --from=builder /jellyfin.asc /etc/apt/trusted.gpg.d/jellyfin.asc COPY --from=builder /jellyfin.asc /etc/apt/trusted.gpg.d/jellyfin.asc
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 \ 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 \
&& mkdir -p /srv/cache /srv/config /srv/media \
&& install_packages ca-certificates mesa-va-drivers jellyfin jellyfin-ffmpeg openssl && 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 # Might need to install 'locales' too, since it does that & configures it in the official Dockerfile
@ -28,7 +27,7 @@ ENV JELLYFIN_CONFIG_DIR /srv/config
ENV JELLYFIN_LOG_DIR /srv/logs ENV JELLYFIN_LOG_DIR /srv/logs
ENV JELLYFIN_CACHE_DIR /srv/cache ENV JELLYFIN_CACHE_DIR /srv/cache
VOLUME /srv/data /srv/config /srv/logs /srv/cache /srv/media VOLUME /srv/data /srv/config /srv/logs /srv/cache /srv/media /srv/global_cache /srv/metadata
USER 90:90 USER 90:90