title: How to specify working directory for ENTRYPOINT in Dockerfile
body: <p>The Docker image (Windows-based) includes an application directory at <code>C:\App</code>. Inside that directory reside several sub-folders and files, including a batch file called <code>process.bat</code>. The Dockerfile (used to build the image) ends like this:</p>
  
  <pre><code>ENTRYPOINT [ "C:\\App\\process.bat" ]
  </code></pre>
  
  <p>When I instantiate this image using the command: <code>docker run company/app</code>, the batch file runs, but it fails at the point where other files under <code>C:\App</code> are referenced. Essentially, the working directory is still <code>C:\</code> from the Docker container's entry-point.</p>
  
  <p>Is there a way to set the working directory within the Dockerfile? Couple of alternatives do exist:</p>
  
  <ul>
  <li>Add <code>-w C:\App</code> to the docker run</li>
  <li>In the batch file, I can add a line at the beginning <code>cd /D C:\App</code></li>
  </ul>
  
  <p>But is there a way to specify the working directory in the Dockerfile?</p>