fix: --frontend mandatory if --opt

This commit is contained in:
ange 2025-10-21 19:15:45 +00:00
parent 626714fe06
commit 1ef5ead381
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D

View file

@ -26,6 +26,7 @@ cat <<EOF > "$DOCKER_CONFIG/config.json"
} }
} }
EOF EOF
buildctl build "$@" -o "type=image,name=$IMAGEAPP,push=true" \ buildctl build --frontend dockerfile.v0 "$@" \
-o "type=image,name=$IMAGEAPP,push=true" \
--opt filename="$INPUT_DOCKERFILE" \ --opt filename="$INPUT_DOCKERFILE" \
--local context="$(dirname "$INPUT_DOCKERFILE")" --local context="$(dirname "$INPUT_DOCKERFILE")"