forked from 5rahim/seanime
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerFile
39 lines (32 loc) · 1.43 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
FROM debian:bullseye-slim
# Install necessary packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg \
wget \
tar \
jq && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Jellyfin's FFmpeg
RUN curl -fsSL https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | gpg --dearmor -o /usr/share/keyrings/jellyfin-archive-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/jellyfin-archive-keyring.gpg] https://repo.jellyfin.org/debian bullseye main" | tee /etc/apt/sources.list.d/jellyfin.list && \
apt-get update && \
apt-get install -y --no-install-recommends jellyfin-ffmpeg6 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app/
RUN mkdir /downloads
# Download and install latest version
RUN LATEST_VERSION=$(curl -s https://api.github.com/repos/5rahim/seanime/releases/latest | jq -r .tag_name) && \
VERSION_NO_V=$(echo ${LATEST_VERSION} | sed 's/v//') && \
echo "Latest version: ${LATEST_VERSION}" && \
echo "Version without v: ${VERSION_NO_V}" && \
wget "https://github.com/5rahim/seanime/releases/download/${LATEST_VERSION}/seanime-${VERSION_NO_V}_Linux_x86_64.tar.gz" && \
tar -xzf "seanime-${VERSION_NO_V}_Linux_x86_64.tar.gz" && \
rm "seanime-${VERSION_NO_V}_Linux_x86_64.tar.gz" && \
chmod +x seanime
ENV PATH="/usr/lib/jellyfin-ffmpeg/:$PATH"
CMD ["./seanime"]