Skip to content

Commit

Permalink
Update Dockerfile.cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 14, 2025
1 parent d0b68bc commit d8c9cf2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand All @@ -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
Expand Down

0 comments on commit d8c9cf2

Please sign in to comment.