Câu 20: AZ-203: Developing Solutions for Microsoft Azure
DRAG DROP -You plan to create a Docker image that runs as AS P. 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 setupScript.ps1 when th…
Nội dung câu hỏi
DRAG DROP -You plan to create a Docker image that runs as AS P. 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 setupScript.ps1 when the container is built. ✑ Run ContosoApp.dll when the container starts. The Docker document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored. Which four 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. Select and Place:
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Explanation Step 1: WORKDIR /apps/ContosoApp Step 2: COPY ./-The Docker document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored. Step 3: EXPOSE ./ContosApp/ /app/ContosoApp Step 4: CMD powershell ./setupScript.ps1ENTRYPOINT ["dotnet", "ContosoApp.dll"]You need to create a Dockerfile document that meets the following requirements: ✑ Call setupScript.ps1 when the container is built. ✑ Run ContosoApp.dll when the container starts. References:https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.