ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 185 - AZ-204 discussion

Report
Export

DRAG DROP

You plan to create a Docker image that runs an ASP.NET Core application named ContosoApp. You have a setup script named setupScript.ps1 and a series of application files including ContosoApp.dll.

You need to create a Dockerfile document that meets the following requirements:

Call setupScripts.ps1 when the container is built.

Run ContosoApp.dll when the container starts.

The Dockerfile document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored.

Which five commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.


Question 185
Correct answer: Question 185

Explanation:

Box 1: CMD [..]

Cmd starts a new instance of the command interpreter, Cmd.exe.

Syntax: CMD <string>

Specifies the command you want to carry out.

Box 2: FROM microsoft/aspnetcore-build:latest

Box 3: WORKDIR /apps/ContosoApp

Bxo 4: COPY ./ .

Box 5: RUN powershell ./setupScript.ps1

asked 02/10/2024
Christian Andrew TANAP
41 questions
User
0 comments
Sorted by

Leave a comment first