How to create docker image from source code

We are trying to build docker image from source code from the lorawan stack repository. We are running docker build . within the folder directory but we are getting error Permission denied while running the command what can be done to solve this issue. Or is there any other way to create image from source code?error_LWS

Please do not post text as an image.