Category : .net

I m trying to create .net 5.0 docker image with playwright, my image build properly but when i run my app using dotnet run ‘ProjectName’ it fails while executing command: await using var browser = await playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions { Headless = false, Args = new[] { "–disable-dev-shm-usage" } }); Received error: Unhandled exception. Microsoft.Playwright.PlaywrightException: Browser ..

Read more

Hi there i´m trying to use CI/CD in GITLAB and i´m prettey new to this. I was able to create the following yml file # Default image is docker:stable image: docker:stable Define deployment stages stages: build We use docker-in-docker (dind) for building docker images (build stage) services: docker:dind Build unit test on dotnet core sdk ..

Read more

Here is my dockerfile: FROM mcr.microsoft.com/dotnet/core/runtime:3.1-nanoserver-1903 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1903 AS build WORKDIR /src COPY DockerEdu/DockerEdu.csproj DockerEdu/ RUN dotnet restore DockerEdu/DockerEdu.csproj COPY . . WORKDIR /src/DockerEdu RUN dotnet build DockerEdu.csproj -c Release -o /app FROM build AS publish RUN dotnet publish "DockerEdu.csproj" -c Release -o /app FROM base AS final WORKDIR ..

Read more