Skip to content

Commit bbda19f

Browse files
committed
chore: update Dockerfile to clean up apt-get cache
This commit updates the Dockerfile to clean up the apt-get cache after installing clang and llvm. This helps reduce the size of the Docker image.
1 parent bbb168d commit bbda19f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ ENV TARGET_RUST_ARCH="x86_64-unknown-linux-musl"
1010

1111
FROM base as builder-arm64
1212
ENV TARGET_RUST_ARCH="aarch64-unknown-linux-musl"
13-
RUN apt-get update && apt-get install clang llvm -y --no-install-recommends
13+
RUN apt-get update \
14+
&& apt-get install clang llvm -y --no-install-recommends \
15+
&& apt-get clean \
16+
&& rm -rf /var/lib/apt/lists/*
1417
ENV CC_aarch64_unknown_linux_musl=clang
1518
ENV AR_aarch64_unknown_linux_musl=llvm-ar
1619
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"

0 commit comments

Comments
 (0)