`COPY --chmod` is quite new, and as mentioned in the post requires BuildKit (i.e. `docker buildx`).
A more portable solution is to use `chmod` right after unzipping the binary. The `COPY` command will then preserve the executable permission.
A more portable solution is to use `chmod` right after unzipping the binary. The `COPY` command will then preserve the executable permission.