title: Get files while Docker
body: <p>I have a simple ASP.NET Core application and it access files from another project. Here are my code:</p>
  
  <pre><code>var currentDirectory = Directory.GetCurrentDirectory();
              string directory = Path.GetFullPath(Path.Combine(currentDirectory, @"..\Data\SqlScripts"));
  string[] fileArray = Directory.GetFiles(directory, "*.sql");
  eturn fileArray.SingleOrDefault(f =&gt; f.Contains(filename));
  </code></pre>
  
  <p>If I run the application in <strong>Docker for Linux</strong> I get an exceptions saying the files are not found. When I debug the <code>currentDirectory</code> is set to <code>/app</code> instead of the actually physical directory.</p>
  
  <p>How can I get the files also while running in Docker?</p>