Skip to content

Commit 4847344

Browse files
authored
Add spack clean command to install step in Dockerfile
1 parent 620b1e1 commit 4847344

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

containers/eic/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export CCACHE_DIR=/ccache
106106
mkdir -p /var/cache/spack/blobs/sha256/
107107
find /var/cache/spack/blobs/sha256/ -ignore_readdir_race -atime +7 -delete
108108
spack ${SPACK_FLAGS} install ${SPACK_INSTALL_FLAGS}
109+
spack clean --downloads --stage
109110
ccache --show-stats
110111
ccache --zero-stats
111112
EOF
@@ -240,6 +241,7 @@ RUN --mount=type=cache,target=/ccache,id=ccache-${TARGETPLATFORM} \
240241
set -e
241242
export CCACHE_DIR=/ccache
242243
spack ${SPACK_FLAGS} install ${SPACK_INSTALL_FLAGS}
244+
spack clean --downloads --stage
243245
spack gc --yes-to-all go go-bootstrap rust rust-bootstrap py-setuptools-rust py-maturin
244246
ccache --show-stats
245247
ccache --zero-stats

0 commit comments

Comments
 (0)