FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# No COPY . . — code is volume-mounted in dev (..:/app)
# This image only provides the Python runtime + dependencies

CMD ["python", "admin/manage.py", "runserver", "0.0.0.0:8000"]
