Complete the Dockerfile line to start from the official Python image.
FROM [1]The FROM instruction sets the base image. Using python:3.12-slim starts from a minimal Python image.
Complete the RUN command to update package lists in one layer.
RUN apt-get update && apt-get [1] -y curlThe command apt-get install -y installs packages without asking for confirmation, combined with update in one layer.
Fix the error in combining commands to minimize layers.
RUN apt-get update [1] apt-get install -y curlThe && operator ensures the second command runs only if the first succeeds, combining commands in one layer.
Fill both blanks to combine copying files and installing dependencies in one RUN command.
COPY requirements.txt /app/requirements.txt RUN pip [2] -r /app/requirements.txt [1] rm /app/requirements.txt
Use && to chain commands and pip install to install dependencies.
Fill all three blanks to create a minimal Dockerfile that installs curl and cleans cache in one RUN.
FROM python:3.12-slim RUN apt-get update [1] apt-get install -y [2] [3] apt-get clean
Use && to chain commands safely and install curl before cleaning cache.