title: How to pass parameters to a .NET core project with dockerfile
body: <p>I've got a <strong>.NET</strong> Core project (using visual studio and adding the docker files via the <a href="https://visualstudiogallery.msdn.microsoft.com/0f5b2caa-ea00-41c8-b8a2-058c7da0b3e4" rel="noreferrer">Visual Studio Tools for Docker</a>).</p>
  
  <p>My <code>DockerFile</code> looks like this:</p>
  
  <pre><code>FROM microsoft/dotnet:1.0.1-core
  ARG source=.
  WORKDIR /app
  COPY $source .
  ENTRYPOINT ["dotnet", "MyApp.dll"]
  CMD ["arg1", "arg2"]
  </code></pre>
  
  <p>My question is, how do I pass parameters into the project? </p>
  
  <pre><code>public static void Main(string[] args)
  {
      // how does `args` get populated?
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/p95gN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/p95gN.png" alt="enter image description here"></a></p>