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