# Use the official Python image FROM python:3.10-slim # Set working directory inside the container WORKDIR /app # Copy requirements and install them COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app COPY . . # Set the command to run the application CMD ["python", "app.py"]