fix(docker): use static ffmpeg with amr support (fixes #5912)

This commit is contained in:
jxxghp
2026-06-08 14:11:34 +08:00
parent 55cf380c9e
commit 84ff7476c0

View File

@@ -41,7 +41,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
iproute2 \
netcat-openbsd \
lsof \
ffmpeg \
nano \
libjemalloc2 \
&& dpkg-reconfigure --frontend noninteractive tzdata \
@@ -114,6 +113,10 @@ FROM prepare_package AS final
ENV LD_PRELOAD="/usr/local/lib/libjemalloc.so"
# 引入支持 amr 编码的静态 ffmpeg
COPY --from=mwader/static-ffmpeg:7.1.0 /ffmpeg /usr/local/bin/
COPY --from=mwader/static-ffmpeg:7.1.0 /ffprobe /usr/local/bin/
# python 环境
COPY --from=prepare_venv --chmod=777 ${VENV_PATH} ${VENV_PATH}
COPY --from=prepare_venv /usr/local/bin/uv /usr/local/bin/uv