Update docker build
This commit is contained in:
parent
ce79f8e037
commit
5ed8c9cf44
2 changed files with 7 additions and 3 deletions
|
|
@ -60,7 +60,7 @@ tests/
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
.coverage
|
.coverage
|
||||||
htmlcov/
|
htmlcov/
|
||||||
evaluations/
|
evaluations/evaluations/data/
|
||||||
server.json
|
server.json
|
||||||
# Examples
|
# Examples
|
||||||
examples/
|
examples/
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,18 @@ ENV UV_COMPILE_BYTECODE=1 \
|
||||||
UV_LINK_MODE=copy
|
UV_LINK_MODE=copy
|
||||||
|
|
||||||
# Install dependencies into a venv
|
# Install dependencies into a venv
|
||||||
|
# In workspace: root package (haiku.rag) includes all extras via haiku.rag-slim
|
||||||
|
# Copy workspace member directories first (needed for workspace resolution)
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml uv.lock ./
|
||||||
|
COPY haiku_rag_slim/pyproject.toml haiku_rag_slim/README.md haiku_rag_slim/LICENSE haiku_rag_slim/
|
||||||
|
COPY evaluations/pyproject.toml evaluations/
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
uv sync --frozen --no-install-project --extra voyageai --extra mxbai --extra a2a
|
uv sync --frozen --no-install-project
|
||||||
|
|
||||||
# Install the project itself
|
# Install the project itself
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
uv sync --frozen --no-editable --extra voyageai --extra mxbai --extra a2a
|
uv sync --frozen --no-editable
|
||||||
|
|
||||||
# Final layer
|
# Final layer
|
||||||
FROM python:3.13-slim
|
FROM python:3.13-slim
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue