FROM python:3.11-slim WORKDIR /app # Copy and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy app files COPY . . # Expose Flask port EXPOSE 5000 # Start Flask app CMD ["python", "app.py"]