skip to Main Content

What is 'build-env' in a dockerfile definition?

I'm new to docker and I'm following Microsoft's tutorial for building a .net core console app with docker at https://learn.microsoft.com/en-us/dotnet/core/docker/build-container?tabs=windows This is the docker file definition for a simple Hello World app FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-env WORKDIR /app COPY .…

VIEW QUESTION

How to perform multiple operations concurrently on DbContext? – Asp.net

I have the following background service running: protected override async Task ExecuteAsync(CancellationToken stoppingToken) { await Task.Run(async () => { while (!stoppingToken.IsCancellationRequested) { using (var scope = _scopeFactory.CreateScope()) { DataContext dbContext = scope.ServiceProvider.GetRequiredService<DataContext>(); var tasks = new List<Task>(); tasks.Add(siteA.ProcessSchedule(SportLeagues.MLB, logger, dbContext));…

VIEW QUESTION
Back To Top
Search