Skip to content

Commit 073dd2a

Browse files
committed
add comments and --force operation
1 parent c079d82 commit 073dd2a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/docker/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,10 @@ export_docker_tag
163163

164164
BUILD_NETWORK="--network=host"
165165

166-
# Prune old docker images (24 hours)
167-
docker system prune --all --filter until=24h
166+
# Prune old docker images (24 hours) from the cache
167+
# This is a temporary solution to keep the cache from growing too large.
168+
# We will also need to evaluate the impact of this on the build process and adjust as necessary.
169+
docker system prune --all --force --filter until=24h
168170

169171
# If DOCKER_CONTEXT is not specified, assume none and just pipe the dockerfile into docker build
170172
if [[ -z "${DOCKER_CONTEXT}" ]]; then

0 commit comments

Comments
 (0)