Skip to content

Commit c470ca4

Browse files
committed
refactor(dockerfile): switch from custom ffmpeg to jellyfin-ffmpeg
- Replace custom ffmpeg image with alpine base and jellyfin-ffmpeg package - Add symlinks for ffmpeg and ffprobe to standard locations - Set USER directive to run as nobody for improved security
1 parent c156db1 commit c470ca4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Containerfile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
FROM ghcr.io/jrottenberg/ffmpeg:7-alpine
2-
RUN apk add --no-cache --update bash coreutils gawk grep sed
1+
FROM alpine:latest
2+
3+
RUN apk add --no-cache --update \
4+
bash \
5+
coreutils \
6+
jellyfin-ffmpeg \
7+
gawk \
8+
grep \
9+
sed
10+
11+
RUN ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/local/bin/ffmpeg && \
12+
ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/local/bin/ffprobe
13+
314
COPY --chown=nobody:nobody --chmod=755 stream-sprout /usr/bin/stream-sprout
15+
416
EXPOSE 1935
17+
USER nobody
518
ENTRYPOINT [ "stream-sprout" ]

0 commit comments

Comments
 (0)