Switch to ffmpeg as base.

This commit is contained in:
SergeantPanda 2025-05-08 12:36:19 -05:00
parent 54bb3da486
commit daf0685355
2 changed files with 3 additions and 7 deletions

View file

@ -1,4 +1,5 @@
FROM ubuntu:24.04
# --- Stage 1: Get FFmpeg from lscr.io ---
FROM lscr.io/linuxserver/ffmpeg:latest AS ffmpeg
ENV DEBIAN_FRONTEND=noninteractive
ENV VIRTUAL_ENV=/dispatcharrpy
@ -28,11 +29,6 @@ RUN python3.13 -m venv $VIRTUAL_ENV && $VIRTUAL_ENV/bin/pip install --upgrade pi
COPY requirements.txt /tmp/requirements.txt
RUN $VIRTUAL_ENV/bin/pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt
# --- Add FFmpeg binaries from lscr.io/linuxserver/ffmpeg ---
COPY --from=lscr.io/linuxserver/ffmpeg:latest /usr/local/bin/ffmpeg /usr/local/bin/
COPY --from=lscr.io/linuxserver/ffmpeg:latest /usr/local/bin/ffprobe /usr/local/bin/
COPY --from=lscr.io/linuxserver/ffmpeg:latest /usr/local/lib/ /usr/local/lib/
# --- Set up Redis 7.x ---
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | \

View file

@ -35,4 +35,4 @@ RUN if [ -n "$TIMESTAMP" ]; then \
cat /app/version.py; \
fi
CMD ["/app/docker/entrypoint.sh"]
ENTRYPOINT ["/app/docker/entrypoint.sh"]