Fix dependencies and docker
This commit is contained in:
parent
4ffef6c666
commit
9b36a3a74a
7 changed files with 8 additions and 6 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -26,3 +26,5 @@ nltk_data/
|
||||||
|
|
||||||
# Debug logs
|
# Debug logs
|
||||||
logs/
|
logs/
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ WORKDIR /app
|
||||||
# Copy only dependency files first for better caching
|
# Copy only dependency files first for better caching
|
||||||
COPY memora/pyproject.toml memora/README.md /app/memora/
|
COPY memora/pyproject.toml memora/README.md /app/memora/
|
||||||
COPY memora/memora /app/memora/memora
|
COPY memora/memora /app/memora/memora
|
||||||
|
COPY memora/alembic /app/memora/alembic
|
||||||
|
|
||||||
# Install uv for faster dependency installation
|
# Install uv for faster dependency installation
|
||||||
RUN pip install --no-cache-dir uv
|
RUN pip install --no-cache-dir uv
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ FROM base AS deps
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY memora-control-plane/package.json memora-control-plane/package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY memora-control-plane/ .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ services:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/"]
|
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/agents"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ export class DataplaneClient {
|
||||||
query: string;
|
query: string;
|
||||||
agent_id: string;
|
agent_id: string;
|
||||||
thinking_budget?: number;
|
thinking_budget?: number;
|
||||||
|
context?: string;
|
||||||
}) {
|
}) {
|
||||||
return this.fetchApi(`/api/think`, {
|
return this.fetchApi(`/api/think`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ dependencies = [
|
||||||
"torch>=2.0.0",
|
"torch>=2.0.0",
|
||||||
"tiktoken>=0.12.0",
|
"tiktoken>=0.12.0",
|
||||||
"httpx>=0.27.0",
|
"httpx>=0.27.0",
|
||||||
|
"fastmcp>=2.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
|
|
@ -35,9 +36,6 @@ test = [
|
||||||
"pytest-asyncio>=0.21.0",
|
"pytest-asyncio>=0.21.0",
|
||||||
"pytest-timeout>=2.4.0",
|
"pytest-timeout>=2.4.0",
|
||||||
]
|
]
|
||||||
mcp = [
|
|
||||||
"fastmcp>=2.0.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = ["memora"]
|
packages = ["memora"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue