-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.amd64
19 lines (17 loc) · 954 Bytes
/
Dockerfile.amd64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM jellyfin/jellyfin:latest
RUN apt update && \
apt install -y openssh-client python3-click python3-yaml wget &&\
wget https://raw.githubusercontent.com/joshuaboniface/rffmpeg/master/rffmpeg -O /usr/local/bin/rffmpeg && \
chmod +x /usr/local/bin/rffmpeg && \
ln -s /usr/local/bin/rffmpeg /usr/local/bin/ffmpeg && \
ln -s /usr/local/bin/rffmpeg /usr/local/bin/ffprobe && \
mkdir -p /etc/rffmpeg && \
wget https://raw.githubusercontent.com/joshuaboniface/rffmpeg/master/rffmpeg.yml.sample -O /etc/rffmpeg/rffmpeg.yml && \
sed -i 's;#persist: "/run/shm";persist: "/run";' /etc/rffmpeg/rffmpeg.yml && \
sed -i 's;#state: "/var/lib/rffmpeg";state: "/config/rffmpeg";' /etc/rffmpeg/rffmpeg.yml && \
sed -i 's;#owner: jellyfin;owner: root;' /etc/rffmpeg/rffmpeg.yml && \
apt purge wget -y && \
rm -rf /var/lib/apt/lists/* && \
apt autoremove --purge -y && \
apt clean
ENTRYPOINT "./jellyfin/jellyfin"