fix: compile dist from source in Docker, fix ChatResult interface
- Dockerfile now runs tsc during build so committed dist/ is never stale - ChatResult interface was missing history[] and memoryUpdates[] fields - Re-add missing MemoryUpdate import in orchestrator.ts - Rebuild dist/ with all new fields included Made-with: Cursor
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -9,12 +9,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies first (layer cache)
|
||||
# Install all deps (including devDeps for tsc)
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
RUN npm ci
|
||||
|
||||
# Copy compiled output (build before docker build, or use multi-stage)
|
||||
COPY dist/ ./dist/
|
||||
# Copy source and compile
|
||||
COPY tsconfig.json ./
|
||||
COPY src/ ./src/
|
||||
RUN npm run build
|
||||
|
||||
# Prune dev deps after build
|
||||
RUN npm prune --omit=dev
|
||||
|
||||
# Create workspace dir and non-root user
|
||||
RUN useradd -r -m -s /bin/bash agent && \
|
||||
|
||||
Reference in New Issue
Block a user