I am new to docker containers and I want o build a docker-compose and dockerfile for a MVC application
Does anyone has a sample of how to create the a docker-compose and Dockerfile.yml for .net MVC, I want to include containers
I have copied the docker file inside the project folder, the docker file looks like this
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
WORKDIR /app
COPY *.csproj ./
RUN dotnet restore
COPY . ./
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "aspnetapp.dll"]
It fails on step 3 with the error ERROR: Service 'api' failed to build: COPY failed: no source files were specified