I am currently working on a remote server (DGX), based on linux. I am running all my applications within a Docker environment.
When I run the following docker command, it is able to successfully build the docker image for use.
$ docker build -t <app_name> .
However, when I execute the docker command via a bash script containing the same exact command as above, I get the following error. It is preferred for me to wrap the docker build command in a bash file for standardisation purposes, but I am unable to do so.
$ sh build_docker.sh
unable to prepare context: path ".\r" not found
Any advice or insights as to why this might be happening?