diff --git a/test.containerfile b/test.containerfile index cd6f5785..4b022944 100644 --- a/test.containerfile +++ b/test.containerfile @@ -7,6 +7,11 @@ ENV PATH="$PATH:/root/.local/bin" WORKDIR ${APP_ROOT} COPY run.yaml ./ +COPY pyproject.toml ./ +COPY uv.lock ./ +COPY LICENSE ./ +COPY README.md ./ +COPY src/ ./src/ RUN microdnf install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs \ python3.12 python3.12-devel python3.12-pip git tar @@ -15,15 +20,16 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh RUN uv -h -RUN uv venv && \ - uv pip install llama-stack==0.2.17 \ - fastapi \ +# Install from pyproject.toml using uv sync for version consistency +# Note: using --no-install-project since this is llama-stack container, not lightspeed-stack +# Include dev deps for testing (pytest, behave, etc.) +RUN uv sync --locked --no-install-project && \ + uv pip install \ opentelemetry-sdk \ opentelemetry-exporter-otlp \ opentelemetry-instrumentation \ aiosqlite \ litellm \ - uvicorn \ blobfile \ datasets \ sqlalchemy \