FROM python:3.9-slim-buster # Set the working directory in the container to /app WORKDIR /app # Copy the requirements file COPY requirements.txt . # Install the dependencies RUN pip install -r requirements.txt # Copy the application code COPY . . # Run the command to start the app CMD ["python", "app.py"]