atomiv / atomiv-dotnet

Atomiv .NET Template
https://atomiv.org
MIT License
4 stars 2 forks source link

Docker Compose - Docker Compose build and run #576

Open valentinajemuovic opened 4 years ago

valentinajemuovic commented 4 years ago

Build and run

https://stackoverflow.com/questions/50591908/how-do-i-run-a-visual-studio-docker-container-from-the-command-line-works-in-vs

{code}

PM> docker-compose build docker-compose : Building mywebshop19.web.restapi At line:1 char:1

Step 1/14 : FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-nanoserver-1903 AS base ---> 5bbe44f31d48 Step 2/14 : WORKDIR /app ---> Using cache ---> ebaceadfc70f Step 3/14 : EXPOSE 80 ---> Using cache ---> 6b7ecb6d1fc0 Step 4/14 : EXPOSE 443 ---> Using cache ---> 48bf41c3c2c4

Step 5/14 : FROM mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1903 AS build ---> 072066b27509 Step 6/14 : WORKDIR /src/Web/MyWebShop19.Web.RestApi ---> Using cache ---> 098af0603ae5 Step 7/14 : RUN dotnet restore "MyWebShop19.Web.RestApi.csproj" ---> Running in 39b57c4cd310 MSBUILD : error MSB1009: Project file does not exist.

Switch: MyWebShop19.Web.RestApi.csproj

Service 'mywebshop19.web.restapi' failed to build: The command 'cmd /S /C dotnet restore "MyWebShop19.Web.RestApi.csproj"' returned a non-zero code: 1

{code}