mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
Switch to lscr ffmpeg.
This commit is contained in:
parent
2bdcc9417d
commit
ff05c8de16
1 changed files with 5 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ RUN corepack enable && corepack prepare yarn@stable --activate && \
|
|||
yarn cache clean
|
||||
|
||||
# Use jrottenberg/ffmpeg as a separate source image for FFmpeg binaries
|
||||
FROM jrottenberg/ffmpeg:7-ubuntu AS ffmpeg-source
|
||||
FROM lscr.io/linuxserver/ffmpeg:latest as ffmpeg
|
||||
|
||||
FROM python:3.13-slim
|
||||
|
||||
|
|
@ -69,8 +69,10 @@ COPY --from=builder /dispatcharrpy /dispatcharrpy
|
|||
COPY --from=builder /app /app
|
||||
COPY --from=frontend-builder /app/frontend/dist /app/frontend/dist
|
||||
# Copy FFmpeg binaries from the ffmpeg stage
|
||||
COPY --from=ffmpeg-source /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
||||
COPY --from=ffmpeg-source /usr/local/bin/ffprobe /usr/local/bin/ffprobe
|
||||
# Add the necessary libraries and binaries from the FFmpeg image
|
||||
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
||||
COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/ffprobe
|
||||
COPY --from=ffmpeg /usr/local/lib/ /usr/local/lib/
|
||||
|
||||
# Run collectstatic after frontend assets are copied
|
||||
RUN cd /app && python manage.py collectstatic --noinput
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue