title: How to set the path of appsetting.json file to DockerFile in IoT Edge Runtime Project
body: <p>I created one IOT edge runtime custom module project on windows container.
  While running the solution I am facing System cannot Find the file specified.
  I am passing the values from appsetting.json file and while running the module the path is not getting specified.</p>
  <p>Is it some way i can give some command to copy appsetting.json file in to container while building the image.</p>
  <p>This is the Dockerfile i am using:</p>
  <pre><code>FROM mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1809 AS build-env
  WORKDIR /app
  
  COPY *.csproj ./
  COPY appsettings.json ./
  RUN dotnet restore
  
  COPY . ./
  RUN dotnet publish -c Release -o out
  
  FROM mcr.microsoft.com/dotnet/core/runtime:3.1-nanoserver-1809
  WORKDIR /app
  COPY --from=build-env /app/out ./
  ENTRYPOINT [&quot;dotnet&quot;, &quot;project.dll&quot;]
  </code></pre>
  <p>This is the cs.proj file</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
    
    &lt;PropertyGroup Condition=&quot;'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp3.1|AnyCPU'&quot;&gt;
      &lt;TreatWarningsAsErrors&gt;True&lt;/TreatWarningsAsErrors&gt;
      &lt;TreatSpecificWarningsAsErrors /&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectCapability Include=&quot;AzureIoTEdgeModule&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;Microsoft.Azure.Devices.Client&quot; Version=&quot;1.*&quot; /&gt;
      &lt;PackageReference Include=&quot;System.Runtime.Loader&quot; Version=&quot;4.3.0&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Reference Include=&quot;SasLib&quot;&gt;
        &lt;HintPath&gt;lib\SasLib.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Compile Update=&quot;Resource\Resource.Designer.cs&quot;&gt;
        &lt;DesignTime&gt;True&lt;/DesignTime&gt;
        &lt;AutoGen&gt;True&lt;/AutoGen&gt;
        &lt;DependentUpon&gt;Resource.resx&lt;/DependentUpon&gt;
      &lt;/Compile&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;EmbeddedResource Update=&quot;Resource\Resource.resx&quot;&gt;
        &lt;Generator&gt;ResXFileCodeGenerator&lt;/Generator&gt;
        &lt;LastGenOutput&gt;Resource.Designer.cs&lt;/LastGenOutput&gt;
      &lt;/EmbeddedResource&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>