[fix] utils: variable expansion (#5237)

Docker buildx outputs the following error:

  variable expansion is not supported for --from, define a new stage with FROM
  using ARG from global scope as a workaround.

Also force BuildKit extension to be installed, legacy build is no longer
supported.

Closes https://github.com/searxng/searxng/issues/5219
This commit is contained in:
Ivan Gabaldon
2025-09-23 20:34:28 +02:00
committed by GitHub
parent a57b29b009
commit d2e2802514
2 changed files with 9 additions and 4 deletions

View File

@@ -62,6 +62,10 @@ container.build() {
esac
info_msg "Selected platform: $platform"
if [ "$container_engine" = "docker" ] && ! docker buildx version &>/dev/null; then
die 42 "docker buildx is not installed: https://docs.docker.com/go/buildx/"
fi
pyenv.install
(