Skip to content

Commit 9412edf

Browse files
authored
Optimize Dockerfile by cleaning up rapidjson files
Remove tar.gz file after extracting rapidjson to save space.
1 parent 8a51e3f commit 9412edf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile.intel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM intel/oneapi-hpckit:2025.2.2-0-devel-ubuntu22.04
33
RUN apt-get update && apt-get install -y \
44
bc cmake git gnupg gcc g++ python3-numpy sudo wget vim unzip \
55
libcereal-dev libxc-dev libgtest-dev libgmock-dev libbenchmark-dev \
6-
pkg-config build-essential autoconf automake libtool
6+
pkg-config build-essential autoconf automake libtool && \
7+
rm -rf /var/lib/apt/lists/*
78

89
# https://elpa.mpcdf.mpg.de/software/tarball-archive/ELPA_TARBALL_ARCHIVE.html
910
RUN cd /tmp && \
@@ -23,7 +24,7 @@ RUN cd /tmp && \
2324
tar -xzf rapidjson-24b5e7a.tar.gz && cd rapidjson-24b5e7a && \
2425
cmake -B build -DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF -DRAPIDJSON_BUILD_TESTS=OFF && \
2526
cmake --build build --target install && \
26-
cd /tmp && rm -r rapidjson-24b5e7a
27+
cd /tmp && rm -r rapidjson-24b5e7a rapidjson-24b5e7a.tar.gz
2728

2829
# LibTorch (Note: Using pre-built Torch library with MKL might cause issues)
2930
RUN wget -q https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.zip -O /tmp/libtorch.zip && \

0 commit comments

Comments
 (0)