Skip to content

update docker base image #3

Description

@airblag

Hi,

peertube-runner uses as a base image
FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu22.04 (

FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu22.04
)

It seems that there might be open CVEs for ffmpeg 4.4.2-0ubuntu0.22.04.1.

https://ubuntu.com/security/cves?package=ffmpeg

Is there a reason why you still use ubuntu22.04 as the base image ?

I am not a very experienced docker person, but trying to build it locally with this changes to the Docker file and it seems to work (but might need more testing). It then provides ffmpeg 6.1.1-3ubuntu5

diff --git a/Dockerfile b/Dockerfile
index c68db61..6355aeb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu22.04
+FROM nvidia/cuda:12.9.2-cudnn-runtime-ubuntu24.04
 
 ENV DEBIAN_FRONTEND=noninteractive
 ENV PATH="/usr/local/bin:${PATH}"
@@ -13,7 +13,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
     apt-get install -y nodejs && \
     rm -rf /var/lib/apt/lists/*
 
-RUN pip3 install --no-cache-dir \
+RUN pip3 install --no-cache-dir --break-system-packages \
     ctranslate2==4.6.0 \
     whisper-ctranslate2==0.5.3

Do you have an opinion on updating the base image ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions