From d8c9cf2617f0d13186396fd51db86da1977e8340 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Fri, 14 Feb 2025 08:43:50 -0700 Subject: [PATCH] Update Dockerfile.cpu --- Dockerfile.cpu | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile.cpu b/Dockerfile.cpu index 187b3fd..8cc83e6 100644 --- a/Dockerfile.cpu +++ b/Dockerfile.cpu @@ -5,7 +5,7 @@ WORKDIR /subgen # Install required build dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ - ffmpeg --fix-missing \ + ffmpeg \ git \ && rm -rf /var/lib/apt/lists/* @@ -18,9 +18,12 @@ FROM python:3.11-slim-bullseye AS runtime WORKDIR /subgen +# Install only required runtime dependencies +RUN apt-get update && apt-get install -y --no-install-recommends \ + ffmpeg \ + && rm -rf /var/lib/apt/lists/* + # Copy only necessary files from builder stage -COPY --from=builder /usr/bin/ffmpeg /usr/bin/ffmpeg -COPY --from=builder /usr/bin/ffprobe /usr/bin/ffprobe COPY --from=builder /install /usr/local # Copy source code