content: # Base image with core tooling
  FROM python:3.10-slim
  
  ENV PYTHONDONTWRITEBYTECODE=1 \
      PYTHONUNBUFFERED=1
  
  RUN apt-get update && apt-get install -y --no-install-recommends \
      build-essential \
      git \
      && rm -rf /var/lib/apt/lists/*
  
  WORKDIR /app
  
  COPY requirements.txt /app/requirements.txt
  RUN pip install --upgrade pip && pip install -r /app/requirements.txt
  
  # Create a non-root user
  RUN useradd -ms /bin/bash appuser
  USER appuser
  