# ==========================================
# App-only image — fast CI/CD rebuilds.
#
# Deps are pre-built and pushed as a separate
# image (nat20-whisperx-base).  CI builds and
# pushes that image only when requirements.txt
# changes, so this build typically only copies
# app code — no pip install, no heavy layers.
#
# Local dev — build the base once:
#   docker build -f Dockerfile.deps -t nat20-whisperx-base .
# Then build this image as needed:
#   docker build -t nat20-notes-backend .
# ==========================================

ARG BASE_IMAGE=nat20-whisperx-base:latest
FROM $BASE_IMAGE AS runtime

WORKDIR /app

COPY app /app/app

EXPOSE 8000

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
