Files
Nat20-Notes/backend/Dockerfile
KansaiGaijin 7b06b151a4
Some checks failed
Build and Push / build (push) Failing after 16s
add ARG BASE_IMAGE + AS runtime to Dockerfile for CI
2026-07-30 12:12:48 +12:00

26 lines
734 B
Docker

# ==========================================
# 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"]