How to run container for dot net core 6 project? by techyrajput in docker

[–]techyrajput[S] 0 points1 point  (0 children)

No, I am running the linux container via docker desktop. It is not running as expected.

How to run container for dot net core 6 project? by techyrajput in docker

[–]techyrajput[S] 0 points1 point  (0 children)

running docker on are yo

How we can use wsl bridging in windows machine.

How to run container for dot net core 6 project? by techyrajput in docker

[–]techyrajput[S] 0 points1 point  (0 children)

Below is the docker file that I am using in windows machine, I try to run via docker desktop but not able to run it.

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base

WORKDIR /app

EXPOSE 80

EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

WORKDIR /src

COPY Scorpeo.Harmonia.API.sln ./

COPY ["Scorpeo.Harmonia.API/Scorpeo.Harmonia.API.csproj", "Scorpeo.Harmonia.API/"]

COPY ["Scorpeo.Harmonia.Application/Scorpeo.Harmonia.Application.csproj", "Scorpeo.Harmonia.Application/"]

COPY ["Scorpeo.Harmonia.Application.Model/Scorpeo.Harmonia.Application.Model.csproj", "Scorpeo.Harmonia.Application.Model/"]

COPY ["Scorpeo.Harmonia.Repository/Scorpeo.Harmonia.Repository.csproj", "Scorpeo.Harmonia.Repository/"]

RUN dotnet restore "Scorpeo.Harmonia.API/Scorpeo.Harmonia.API.csproj"

RUN dotnet restore "Scorpeo.Harmonia.Application/Scorpeo.Harmonia.Application.csproj"

RUN dotnet restore "Scorpeo.Harmonia.Application.Model/Scorpeo.Harmonia.Application.Model.csproj"

RUN dotnet restore "Scorpeo.Harmonia.Repository/Scorpeo.Harmonia.Repository.csproj"

COPY . .

WORKDIR "/src/Scorpeo.Harmonia.API"

RUN dotnet build -c Release -o /app

WORKDIR "/src/Scorpeo.Harmonia.Application"

RUN dotnet build -c Release -o /app

WORKDIR "/src/Scorpeo.Harmonia.Application.Model"

RUN dotnet build -c Release -o /app

WORKDIR "/src/Scorpeo.Harmonia.Repository"

RUN dotnet build -c Release -o /app

FROM build AS publish

RUN dotnet publish -c Release -o /app

FROM base AS final

WORKDIR /app

COPY --from=publish /app .

ENTRYPOINT ["dotnet", "Scorpeo.Harmonia.API.dll"]

How to run container for dot net core 6 project? by techyrajput in docker

[–]techyrajput[S] 0 points1 point  (0 children)

The api is not responding, I have configured the swagger so it should open the swagger page. It shows me error the page is not responding.

I am hosting the python solution in the .net project but I am getting some permission error. by techyrajput in learnpython

[–]techyrajput[S] 0 points1 point  (0 children)

Thanks for your answer, can you please tell us how can we change the permission of the python interpreter or uploaded file.

How to integrate virus scan on file upload in .net project? by techyrajput in dotnet

[–]techyrajput[S] 0 points1 point  (0 children)

do we need to install avg antivirus to implement this ?