Hello , i am trying to deploy my asp net website on heroku using docker .. but i really need help as i keep getting error ... i keep getting error while building
(dotnet build -t test . or dotnet build .) this command give me the below error .
i was following the steps in this link Click Here
i have tried to change to used the windows container and now i get this error
- i looked for solutions and i found that i have to change in csproj and i have chnaged in it as below
- another solution was to use (dotnet build) i have used that and i got the error below
PLease note that my docker file now contains as following
`# Dockerfile
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", "test.dll" ]`
- i also have another question in docker file the WORKDIR what should come after it is it the directory that has my project or what ??????????????????????
i hope someone can help me pleaseeee
thank you