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:
and from Portainer:

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