Complete the Dockerfile command to specify the base image.
FROM [1]The FROM command sets the base image for the Docker image. Here, ubuntu:latest is a common base.
Complete the Dockerfile command to copy files into the image.
COPY [1] /appThe COPY command copies files from the current directory . into the image's /app folder.
Fix the error in the Dockerfile command to run a shell command.
[1] apt-get updateThe RUN command executes shell commands during image build. Here, it runs apt-get update.
Fill both blanks to set the working directory and default command.
WORKDIR [1] CMD [2]
WORKDIR sets the folder where commands run. CMD sets the default command to run when the container starts.
Fill all three blanks to create a dictionary of environment variables in a Dockerfile.
ENV [1]=[2] [3]
The ENV command sets environment variables inside the image. Here, APP_ENV=production and DEBUG=false are set.