mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 15:36:08 +00:00
Update Dockerfile.cpu
This commit is contained in:
1 parent
d0b68bc789
commit
d8c9cf2617
1 file changed
+6
-3
+6
-3
@@ -5,7 +5,7 @@ WORKDIR /subgen
|
|||||||
|
|
||||||
# Install required build dependencies
|
# Install required build dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ffmpeg --fix-missing \
|
ffmpeg \
|
||||||
git \
|
git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -18,9 +18,12 @@ FROM python:3.11-slim-bullseye AS runtime
|
|||||||
|
|
||||||
WORKDIR /subgen
|
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 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 --from=builder /install /usr/local
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
|
|||||||
Reference in new issue
Block a user