# Use an official Python base image FROM python:3.10-slim # Set the working directory inside the container WORKDIR /app # Copy the requirements file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the application code COPY . . # Set the command to run the application CMD ["python", "main.py"]