title: $(pwd) - one level up
body: <p>I'm pretty new to the bash/shell script world, I'm trying to do the below and it could be pretty simple but I wasn't able to figure out the command, would be great if someone could help me out here and also point me to some documentation wrt to shell script topics. Thank you in advance.</p>
  
  <p>My build.sh and Dockerfile resides under a folder called .settings and this folder lives directly under the app root. Now inside my build.sh and Dockerfile when I refer something like $(pwd) or COPY . /apps/ it might not work since my build.sh and Dockerfile does not live directly under the app root.</p>
  
  <p>What command I can use in this scenario inside the files that I referenced above. Hope I made it clear. Once again this could be very simple since I'm a newbie in this arena I find it a little difficult.</p>
  
  <pre><code>inside build.sh, reference to $(pwd)
  
  docker run \
  -u root \
  --rm \
  -v $(pwd):/app \ ----&gt; this $(pwd) references the application root, but if I 
  move this build.sh inside a folder called .settings then the $(pwd) context 
  would change and I still want to refer it to the root.
  &lt;MYIMAGE NAME FROM LOCAL REPO&gt;
  </code></pre>