In this line the AMD64 version of yq is pulled into the Dockerfile which leads to /usr/local/bin/docker-entrypoint.sh: line 61: /usr/bin/yq: cannot execute binary file: Exec format error
as a hint you can access ${TARGETARCH} in docker build like this curl -fSL https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${TARGETARCH} -o yq
https://github.com/JanusGraph/janusgraph-docker/blob/master/1.0/Dockerfile#L33
In this line the AMD64 version of yq is pulled into the Dockerfile which leads to
/usr/local/bin/docker-entrypoint.sh: line 61: /usr/bin/yq: cannot execute binary file: Exec format error