Spaces:
Running
Running
ci : add apt-get clean to musa Dockerfile (#3275)
Browse files* 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
CHANGED
|
@@ -10,8 +10,9 @@ FROM ${BASE_MUSA_DEV_CONTAINER} AS build
|
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
RUN apt-get update && \
|
| 13 |
-
apt-get install -y build-essential libsdl2-dev wget cmake git \
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
COPY .. .
|
| 17 |
# Enable muBLAS
|
|
@@ -21,8 +22,9 @@ FROM ${BASE_MUSA_RUN_CONTAINER} AS runtime
|
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
RUN apt-get update && \
|
| 24 |
-
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
COPY --from=build /app /app
|
| 28 |
ENV PATH=/app/build/bin:$PATH
|
|
|
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
RUN apt-get update && \
|
| 13 |
+
apt-get install -y build-essential libsdl2-dev wget cmake git && \
|
| 14 |
+
apt-get clean && \
|
| 15 |
+
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /var/tmp/*
|
| 16 |
|
| 17 |
COPY .. .
|
| 18 |
# Enable muBLAS
|
|
|
|
| 22 |
WORKDIR /app
|
| 23 |
|
| 24 |
RUN apt-get update && \
|
| 25 |
+
apt-get install -y curl ffmpeg wget cmake git && \
|
| 26 |
+
apt-get clean && \
|
| 27 |
+
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/* /var/tmp/*
|
| 28 |
|
| 29 |
COPY --from=build /app /app
|
| 30 |
ENV PATH=/app/build/bin:$PATH
|