Corrent passing arguments to docker entrypoint

I have a super dump script

$ cat script.sh 
cat <<EOT > entrypoint.sh 
#!/bin/bash
echo "[email protected]"
EOT

docker run -it --rm -v $(pwd)/entrypoint.sh:/root/entrypoint.sh --entrypoint /root/entrypoint.sh bash:4 Hello World

But when I run script I got strange error:

$ sh script.sh 
standard_init_linux.go:207: exec user process caused "no such file or directory"

Why script does not print Hello world ?

Source: StackOverflow