Stream / Dockerfile
madiba-elate's picture
Update Dockerfile
6246ef0 verified
Raw
History Blame Contribute Delete
716 Bytes
FROM jellyfin/jellyfin:latest
RUN apt-get update && apt-get install -y --no-install-recommends \
wget ca-certificates gosu python3 \
&& rm -rf /var/lib/apt/lists/*
# Dossiers persistants
RUN mkdir -p /data/media/movies /data/media/tvshows /data/config /data/cache /data/log
# Variables d’environnement qui forcent Jellyfin à utiliser /data
ENV JELLYFIN_DATA_DIR=/data/config
ENV JELLYFIN_CONFIG_DIR=/data/config
ENV JELLYFIN_CACHE_DIR=/data/cache
ENV JELLYFIN_LOG_DIR=/data/log
ENV JELLYFIN_WEB_DIR=/jellyfin/jellyfin-web
USER root
COPY start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/start.sh
COPY library.json /defaults/library.json
EXPOSE 7860
ENTRYPOINT ["/usr/local/bin/start.sh"]