Docker how to deploy dotnet nginx ? (without .csproj)

Hello I want to deploy in docker: .net, kestrel and nginx. I have a project assembly without .csproj (it is possible or need .csproj ?) But when I try to deploy my .net project in Docker I had status Exitet.


Dockerfile

FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env

WORKDIR /app

COPY . .

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2

WORKDIR /app

COPY . .

EXPOSE 80

ENTRYPOINT ["bash"]

CMD ["build1", "WebApplication4.dll"]


My project files

appsettings.Development.json

appsettings.json

Dockerfile

WebApplication4

WebApplication4.deps.json

WebApplication4.dll

WebApplication4.pdb

WebApplication4.runtimeconfig.json

WebApplication4.Views.dll

WebApplication4.Views.pdb

web.config

wwwroot


docker ps --all

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

0f1880a89999 build1 "bash build1 WebAppl…" 4 seconds ago Exited (127) 3 seconds ago sleepy_bardeen