# Use official Python base image FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements and app files COPY requirements.txt ./ COPY app.py ./ # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Command to run the app CMD ["python", "app.py"]