DRAG DROP

DRAG DROP
You are creating a container for an ASP.NET Core app.
You need to create a Dockerfile file to build the image. The solution must ensure that the size of the image is minimized.
How should you configure the file? To answer, drag the appropriate values to the correct targets. Each value must be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

microsoft-exams

2 thoughts on “DRAG DROP

  1. mcr.microsoft.com/dotnet/core/sdk
    dotnet publish -c Release -o out
    mcr.microsoft.com/dotnet/core/aspnet:2.2

    FROM mcr.microsoft.com/dotnet/core/sdk:2.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:2.1
    WORKDIR /app
    COPY –from=build-env /app/out .
    ENTRYPOINT [“dotnet”, “asp-net-getting-started.dll”]

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.