forked from linuxserver/docker-jellyfin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
53 lines (48 loc) · 1.35 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM lsiobase/ubuntu:focal
# set version label
# ARG BUILD_DATE
# ARG VERSION
# ARG JELLYFIN_RELEASE
LABEL build_version="sleepgod version:latest Build-date:20250222061147"
LABEL maintainer="sleepgod"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y ca-certificates --no-install-recommends \
gnupg curl apt-utils && \
echo "**** install jellyfin 1*****" && \
curl -s https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | apt-key add - && \
echo "**** install jellyfin 2*****" && \
echo 'deb [arch=amd64] https://repo.jellyfin.org/ubuntu focal main' > /etc/apt/sources.list.d/jellyfin.list && \
if [ -z ${JELLYFIN_RELEASE+x} ]; then \
JELLYFIN="jellyfin"; \
else \
JELLYFIN="jellyfin=${JELLYFIN_RELEASE}"; \
fi && \
apt-get update && \
apt-get install -y --no-install-recommends \
at \
xfonts-wqy \
fonts-wqy-zenhei \
fonts-wqy-microhei \
${JELLYFIN} \
libfontconfig1 \
libfreetype6 \
intel-media-va-driver-non-free \
mesa-va-drivers \
vainfo \
libssl1.1 && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8096 8920
VOLUME /config