-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile.arm64
31 lines (25 loc) · 1.28 KB
/
Dockerfile.arm64
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
FROM alpine AS qemu
# QEMU Download
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v4.0.0%2Bbalena2/qemu-4.0.0.balena2-aarch64.tar.gz
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
FROM --platform=linux/arm64 jellyfin/jellyfin:latest
# Add QEMU
COPY --from=qemu qemu-aarch64-static /usr/bin
# Add Labels
LABEL maintainer [email protected]
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"