title: Docker compose build error - Project file does not exist
body: <p>I'm trying to create docker compose which run my ASP.NET Core app and mssql, but I'm getting an error during build.</p>
  
  <p>Here's my docker compose file:</p>
  
  <pre><code># Build Stage
  FROM microsoft/aspnetcore-build:latest as build-env
  WORKDIR /source
  COPY . .
  RUN dotnet restore ./Travelingowe.sln
  RUN dotnet publish --output ${source:-obj/Docker/publish} --configuration Release
  
  # Publish Stage
  FROM microsoft/aspnetcore:latest
  COPY --from=build-env ./obj/Docker/publish /app
  WORKDIR /app
  ENTRYPOINT ["dotnet", "Api.dll"]
  </code></pre>
  
  <p>when I run in CMD -> <strong>docker-compose up</strong> I'm getting:</p>
  
  <pre><code>Building api
  Step 1/9 : FROM microsoft/aspnetcore-build:latest as build-env
   ---&gt; d6273f7c44d4
  Step 2/9 : WORKDIR /source
   ---&gt; Using cache
   ---&gt; 978f1c31e14a
  Step 3/9 : COPY . .
   ---&gt; Using cache
   ---&gt; bcc750adcb99
  Step 4/9 : RUN dotnet restore ./Travelingowe.sln
   ---&gt; Running in 764199859de4
  MSBUILD : error MSB1009: Project file does not exist.
  Switch: ./Travelingowe.sln
  ERROR: Service 'api' failed to build: The command '/bin/sh -c dotnet restore ./Travelingowe.sln' returned a non-zero code: 1
  </code></pre>
  
  <p>Do you have any ide what is wrong?</p>
  
  <p>Thanks!</p>
  
  <p>UPDATE:
  My project files:
  <a href="https://i.stack.imgur.com/c5dhF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c5dhF.png" alt="enter image description here"></a></p>