Refer to the exhibit. What is the result of running the Dockerfile?
A.
Copy the directory /app from the ubuntu:18.04 image, build it with make, and execute the application with the Python command.
B.
Copy the directory app from the current directory of the Docker client, execute the application with make, and after it runs, execute an additional application.
C.
Copy the directory app from the current directory of the Docker client, build it with make, and execute the application with the Python command.
D.
Copy the /app directory from the ubuntu:18.04 image, execute the application with make, and after it runs, execute an additional application.
FROM ubuntu:18.04: This line specifies the base image to use for the container. It uses Ubuntu 18.04 as the base.
COPY . /app: This line copies everything from the current directory on the Docker client's machine into the /app directory inside the container.
RUN make /app: This line runs the make command in the /app directory inside the container, which is typically used to build or compile the application.
CMD python /app/app.py: This line specifies the command that will be executed when the container starts. In this case, it runs the app.py Python script located in the /app directory.
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
LukeJones
6 days, 8 hours ago