Complete the Dockerfile line to run a command during image build.
RUN [1]The RUN instruction executes commands during the image build. Here, apt-get update updates package lists.
Complete the RUN command to install curl using apt-get.
RUN apt-get update && apt-get [1] -y curlThe install command installs packages. Here, it installs curl after updating package lists.
Fix the error in the RUN instruction to update and install git.
RUN apt-get update && apt-get [1] gitThe -y option must come before the package name. Correct syntax is apt-get install -y git.
Fill both blanks to run a shell command that creates a directory and lists its contents.
RUN mkdir [1] && ls [2]
The command creates the /app directory and then lists its contents with ls /app.
Fill all three blanks to run a command that updates, installs vim, and cleans up.
RUN apt-get [1] && apt-get install [2] vim && apt-get [3]
The command updates package lists, installs vim with automatic yes, and cleans up temporary files.