title: Dockerfile: Getting failed to compute cache key: "/nginx.conf" not found: not found
body: <p>I'm working on a Blazor Wasm (ASP.Net Core hosted consisting on the usual 3 projects Client, Server and Shared) app that I want to deploy to Linux using docker.
  I'm copying a nginx.conf file to the Server project root folder but when trying to publish to Azure App Service Containers I'm getting:</p>
  <blockquote>
  <p>failed to compute cache key: &quot;/nginx.conf&quot; not found: not found</p>
  </blockquote>
  <p>This is my Dockerfile:</p>
  <pre><code>FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
  WORKDIR /app
  EXPOSE 80
  EXPOSE 443
  
  FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
  WORKDIR /src
  COPY [&quot;MyLocalShop/Server/MyLocalShop.Server.csproj&quot;, &quot;MyLocalShop/Server/&quot;]
  COPY [&quot;MyLocalShop.Services.MongoDb/MyLocalShop.Services.MongoDb.csproj&quot;, &quot;MyLocalShop.Services.MongoDb/&quot;]
  COPY [&quot;MyLocalShop.Server.Contracts/MyLocalShop.Server.Contracts.csproj&quot;, &quot;MyLocalShop.Server.Contracts/&quot;]
  COPY [&quot;MyLocalShop/Shared/MyLocalShop.Shared.csproj&quot;, &quot;MyLocalShop/Shared/&quot;]
  COPY [&quot;MyLocalShop/Client/MyLocalShop.Client.csproj&quot;, &quot;MyLocalShop/Client/&quot;]
  RUN dotnet restore &quot;MyLocalShop/Server/MyLocalShop.Server.csproj&quot;
  COPY . .
  WORKDIR &quot;/src/MyLocalShop/Server&quot;
  RUN dotnet build &quot;MyLocalShop.Server.csproj&quot; -c Release -o /app/build
  
  FROM build AS publish
  RUN dotnet publish &quot;MyLocalShop.Server.csproj&quot; -c Release -o /app/publish
  
  FROM nginx:alpine AS final
  WORKDIR /app
  COPY --from=publish /app/publish .
  COPY nginx.conf /etc/nginx/nginx.conf
  ENTRYPOINT [&quot;dotnet&quot;, &quot;MyLocalShop.Server.dll&quot;]
  </code></pre>
  <p>If I run the dotnet publish command to check the ouput directory within app/publish, I can see the file is actually there.
  What am I missing?</p>