mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
fix: build image with --no-cache (#275)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -19,3 +19,6 @@ Thumbs.db
|
|||||||
|
|
||||||
# Ignore built ts files
|
# Ignore built ts files
|
||||||
dist
|
dist
|
||||||
|
|
||||||
|
# Docker folder to help skip auth refreshes
|
||||||
|
.docker
|
||||||
|
|||||||
@@ -67,10 +67,10 @@ echo "building $IMAGE ... (can be slow first time)"
|
|||||||
|
|
||||||
if [[ "$CMD" == "podman" ]]; then
|
if [[ "$CMD" == "podman" ]]; then
|
||||||
# use empty --authfile to skip unnecessary auth refresh overhead
|
# 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
|
elif [[ "$CMD" == "docker" ]]; then
|
||||||
# use an empty config directory to skip unnecessary auth refresh overhead
|
# use config directory to skip unnecessary auth refresh overhead
|
||||||
$CMD --config="empty" buildx build -f "$DOCKERFILE" -t "$IMAGE" .
|
$CMD --config=".docker" buildx build --no-cache -f "$DOCKERFILE" -t "$IMAGE" .
|
||||||
else
|
else
|
||||||
$CMD build -f "$DOCKERFILE" -t "$IMAGE" . >/dev/null
|
$CMD build -f "$DOCKERFILE" -t "$IMAGE" . >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user