]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ci : add apt-get clean to musa Dockerfile (#3275)
authorDaniel Bevenius <redacted>
Mon, 23 Jun 2025 10:34:44 +0000 (12:34 +0200)
committerGitHub <redacted>
Mon, 23 Jun 2025 10:34:44 +0000 (12:34 +0200)
* ci : add apt-get clean to musa Dockerfile

This commit adds `apt-get clean` to the musa Dockerfile to reduce the
image size by removing cached package files after installation.

The motivation for this is to try to reduce the size of the Docker image
and see if this can avoid the "no space left on device" error during
the CI build process.

Refs: https://github.com/ggml-org/whisper.cpp/actions/runs/15815324254

.devops/main-musa.Dockerfile

index c54b22d70a77d6a3dc54845bd0cccb5a9c9f4da8..c8b7ec287a425caea81c15287ac130628e43992d 100644 (file)
@@ -10,8 +10,9 @@ FROM ${BASE_MUSA_DEV_CONTAINER} AS build
 WORKDIR /app
 
 RUN apt-get update && \
-    apt-get install -y build-essential libsdl2-dev wget cmake git \
-    && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
+    apt-get install -y build-essential libsdl2-dev wget cmake git && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /var/tmp/*
 
 COPY .. .
 # Enable muBLAS
@@ -21,8 +22,9 @@ FROM ${BASE_MUSA_RUN_CONTAINER} AS runtime
 WORKDIR /app
 
 RUN apt-get update && \
-  apt-get install -y curl ffmpeg wget cmake git \
-  && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
+    apt-get install -y curl ffmpeg wget cmake git && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /var/tmp/*
 
 COPY --from=build /app /app
 ENV PATH=/app/build/bin:$PATH