From 659fbb23939f922ccc21c1192e9330cc8e09592c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Wed, 4 Dec 2024 21:06:04 +0100 Subject: [PATCH] fix: ffmpeg is required by pydub --- cicd/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cicd/Dockerfile b/cicd/Dockerfile index f73c4ccd..71cf3fe7 100644 --- a/cicd/Dockerfile +++ b/cicd/Dockerfile @@ -1,6 +1,13 @@ # Base container FROM ghcr.io/astral-sh/uv:python3.12-bookworm AS base +RUN rm -f /etc/apt/apt.conf.d/docker-clean \ + && echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache +RUN --mount=target=/var/lib/apt/lists,type=cache,id=apt-lists-${TARGETPLATFORM},sharing=locked --mount=target=/root/.cache/pip,type=cache,id=pip-${TARGETPLATFORM},sharing=locked \ + apt-get update -q \ + && apt-get install -y -q --no-install-recommends \ + ffmpeg + ARG VERSION ENV VERSION=${VERSION}