Microsoft Azure DevOps Solutions(AZ-400) Practice Test 2

© examsiri.com
Question : 3 of 25
 
Marks: +1, -0
You plan to create an image that will contain a .NET Core application.

You have a Dockerfile file that contains the following code. (Line numbers are included for reference only.)
01 FROM microsoft /dotnet:2.1-sdk
02 COPY ./
03 RUN dotnet publish -c Release -o out
04 FROM microsoft /dotnet:2.1-sdk
05 COPY -from=0 / out /
06 WORKDIR /
07 ENTRYPOINT ["dotnet", "appl.dll"]

You need to ensure that the image is as small as possible when the image is built. Which line should you modify in the file?
Go to Question: