Image build fails

I am trying to build an image from this Dockerfile, but the build fails and I am not sure what to do to fix it.

I tried building it in Portainer and with docker command line in /tmp directory, but in both cases the build fails, in a different way.

Here’s build output from docker command line: https://pastebin.com/raw/0pvGCUrB
and from Portainer: https://pastebin.com/raw/mSxcGhy8

As the error states, scripts/entrypoint.sh is not found in the folder you run the Docker build.