# Use the official Python image from the Docker Hub FROM python:3.12-slim # Set working directory in the container WORKDIR /app # Copy requirements.txt COPY requirements.txt . # Install the required packages RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application files COPY . . # Command to run the application CMD ["python", "app.py"]