mirror of
https://github.com/wimpysworld/stream-sprout
synced 2026-03-14 14:45:50 +01:00
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
This commit is contained in:
parent
c156db1f64
commit
c470ca46e4
1 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,18 @@
|
|||
FROM ghcr.io/jrottenberg/ffmpeg:7-alpine
|
||||
RUN apk add --no-cache --update bash coreutils gawk grep sed
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache --update \
|
||||
bash \
|
||||
coreutils \
|
||||
jellyfin-ffmpeg \
|
||||
gawk \
|
||||
grep \
|
||||
sed
|
||||
|
||||
RUN ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/local/bin/ffmpeg && \
|
||||
ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/local/bin/ffprobe
|
||||
|
||||
COPY --chown=nobody:nobody --chmod=755 stream-sprout /usr/bin/stream-sprout
|
||||
|
||||
EXPOSE 1935
|
||||
USER nobody
|
||||
ENTRYPOINT [ "stream-sprout" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue