QuestionQ18Verified/Application Deployment and SecurityCopy linkReport a problemAsk AstroTutorSave question Refer to the exhibit. What happens when the Dockerfile is run?ACopy the directory /app from the ubuntu:18.04 image, build it with make, and execute the application with the Python command.BCopy the directory app from the current directory of the Docker client, execute the application with make, and after it runs, execute an additional application.CCopy the directory app from the current directory of the Docker client, build it with make, and execute the application with the Python command.DCopy the /app directory from the ubuntu:18.04 image, execute the application with make, and after it runs, execute an additional application.Show AnswerAnswerExplanationCOPY . /app copies the contents of the Docker client’s current build context into /app. RUN make /app executes make while building the image, and CMD python /app/app.py supplies the default Python command when a container created from the image starts.Learn moreDockerfile referenceShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion