File size: 716 Bytes
8e16f39
 
592ba7a
 
 
8e16f39
6246ef0
592ba7a
8e16f39
6246ef0
 
 
 
 
 
 
8e16f39
 
 
 
 
 
 
6246ef0
8e16f39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]