diff --git a/services/api/Dockerfile b/services/api/Dockerfile index 65d6fc6..988424f 100644 --- a/services/api/Dockerfile +++ b/services/api/Dockerfile @@ -6,6 +6,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app +# Install the workspace-shared tracebility-tenant package first. uv treats +# it as a workspace member; pip needs it pre-installed locally so the +# subsequent ``pip install .`` finds it (not published to PyPI). +COPY services/_shared/tenant /tmp/tracebility-tenant +RUN pip install --no-cache-dir /tmp/tracebility-tenant && rm -rf /tmp/tracebility-tenant + COPY services/api/pyproject.toml ./pyproject.toml COPY services/api/tracebility_api ./tracebility_api diff --git a/services/ingest-api/Dockerfile b/services/ingest-api/Dockerfile index 99eb601..e3656fa 100644 --- a/services/ingest-api/Dockerfile +++ b/services/ingest-api/Dockerfile @@ -6,6 +6,13 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app +# Install the workspace-shared tracebility-tenant package first. uv treats +# it as a workspace member; pip needs it pre-installed locally so the +# subsequent ``pip install .`` finds it (the package is not published to +# PyPI). +COPY services/_shared/tenant /tmp/tracebility-tenant +RUN pip install --no-cache-dir /tmp/tracebility-tenant && rm -rf /tmp/tracebility-tenant + COPY services/ingest-api/pyproject.toml ./pyproject.toml COPY services/ingest-api/tracebility_ingest ./tracebility_ingest diff --git a/services/ingest-worker/Dockerfile b/services/ingest-worker/Dockerfile index 716d9f7..d0e0cf0 100644 --- a/services/ingest-worker/Dockerfile +++ b/services/ingest-worker/Dockerfile @@ -6,6 +6,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app +# Install the workspace-shared tracebility-tenant package first. uv treats +# it as a workspace member; pip needs it pre-installed locally so the +# subsequent ``pip install .`` finds it (not published to PyPI). +COPY services/_shared/tenant /tmp/tracebility-tenant +RUN pip install --no-cache-dir /tmp/tracebility-tenant && rm -rf /tmp/tracebility-tenant + COPY services/ingest-worker/pyproject.toml ./pyproject.toml COPY services/ingest-worker/tracebility_worker ./tracebility_worker