Complete the code to specify the base image in the Dockerfile.
FROM [1]The base image node:18-alpine is a lightweight Node.js image suitable for Express apps.
Complete the Dockerfile line to copy your app files into the container.
COPY [1] /appUsing . copies all files from the current directory into the container's /app folder.
Fix the error in the Dockerfile command to install dependencies.
RUN npm [1]The command npm install installs all dependencies listed in package.json.
Fill both blanks to expose the correct port and set the container's working directory.
WORKDIR [1] EXPOSE [2]
The working directory is set to /app where the app files are copied. Express apps commonly use port 3000.
Fill both blanks to define the command that starts the Express app.
CMD ["[1]", "[2]"]
The command uses node to run the main app file app.js.