# Matrx SEO — standalone vertical service image.
#
# Installs ENTIRELY from PyPI (every matrx-* dep is published; a bare
# `uv pip install matrx-seo[standalone]` is proven by the independence gate).
# Build from anywhere:
#   docker build -t matrx-seo packages/matrx-seo
# Pin the version at build time for reproducible deploys:
#   docker build --build-arg MATRX_SEO_VERSION==0.1.0 -t matrx-seo:0.1.0 packages/matrx-seo
#
# No system binaries: this service talks HTTP to SEO providers and Postgres to
# the ONE database. Nothing to render, nothing to OCR — keep the image small.
FROM python:3.13-slim

RUN pip install --no-cache-dir uv

ARG MATRX_SEO_VERSION=""
RUN uv pip install --system "matrx-seo[standalone]${MATRX_SEO_VERSION}"

EXPOSE 8081
CMD ["uvicorn", "matrx_seo.standalone.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8081"]
