Fix dependencies and docker

This commit is contained in:
Chris Latimer 2025-11-22 14:05:07 -07:00
parent 4ffef6c666
commit 9b36a3a74a
7 changed files with 8 additions and 6 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored
View file

@ -26,3 +26,5 @@ nltk_data/
# Debug logs
logs/
.DS_Store

View file

@ -11,6 +11,7 @@ WORKDIR /app
# Copy only dependency files first for better caching
COPY memora/pyproject.toml memora/README.md /app/memora/
COPY memora/memora /app/memora/memora
COPY memora/alembic /app/memora/alembic
# Install uv for faster dependency installation
RUN pip install --no-cache-dir uv

View file

@ -5,14 +5,14 @@ FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY memora-control-plane/package.json memora-control-plane/package-lock.json ./
COPY package.json package-lock.json ./
RUN npm ci
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY memora-control-plane/ .
COPY . .
RUN npm run build

View file

@ -37,7 +37,7 @@ services:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/agents"]
interval: 10s
timeout: 5s
retries: 5

View file

@ -48,6 +48,7 @@ export class DataplaneClient {
query: string;
agent_id: string;
thinking_budget?: number;
context?: string;
}) {
return this.fetchApi(`/api/think`, {
method: 'POST',

View file

@ -27,6 +27,7 @@ dependencies = [
"torch>=2.0.0",
"tiktoken>=0.12.0",
"httpx>=0.27.0",
"fastmcp>=2.0.0",
]
[project.optional-dependencies]
@ -35,9 +36,6 @@ test = [
"pytest-asyncio>=0.21.0",
"pytest-timeout>=2.4.0",
]
mcp = [
"fastmcp>=2.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["memora"]