summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrandon Keiji <[email protected]>2025-05-07 15:18:04 +0000
committerGitHub <[email protected]>2025-05-07 08:18:04 -0700
commited0b90644a95a805d77c260a18c6b3f199e583ce (patch)
tree4b248ecd87290f26effd5b935a7b14d9252f270a /scripts
parent49b5db29b34bba2dcef68ae82d6843c520bab93c (diff)
fix: build image with --no-cache (#275)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_sandbox.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build_sandbox.sh b/scripts/build_sandbox.sh
index d475f1fb..1fedcd53 100755
--- a/scripts/build_sandbox.sh
+++ b/scripts/build_sandbox.sh
@@ -67,10 +67,10 @@ echo "building $IMAGE ... (can be slow first time)"
if [[ "$CMD" == "podman" ]]; then
# use empty --authfile to skip unnecessary auth refresh overhead
- $CMD build --authfile=<(echo '{}') -f "$DOCKERFILE" -t "$IMAGE" .
+ $CMD build --authfile=<(echo '{}') --no-cache -f "$DOCKERFILE" -t "$IMAGE" .
elif [[ "$CMD" == "docker" ]]; then
- # use an empty config directory to skip unnecessary auth refresh overhead
- $CMD --config="empty" buildx build -f "$DOCKERFILE" -t "$IMAGE" .
+ # use config directory to skip unnecessary auth refresh overhead
+ $CMD --config=".docker" buildx build --no-cache -f "$DOCKERFILE" -t "$IMAGE" .
else
$CMD build -f "$DOCKERFILE" -t "$IMAGE" . >/dev/null
fi