Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions packages/ingest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Built from the monorepo root context. The v2 ingest sweep worker: no HTTP server,
# it loops `sweep` on an interval and talks to core over LOCKSTEP_API_URL.
FROM node:20-alpine AS build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build -w @lockstep/ingest

FROM node:20-alpine AS run
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/packages/ingest ./packages/ingest
# Loop: fetch → distill → propose, every 15 min (serve default). Env: LOCKSTEP_API_URL,
# LOCKSTEP_INGEST_TOKEN, COMPOSIO_API_KEY, ANTHROPIC_API_KEY.
CMD ["node", "packages/ingest/dist/index.js", "serve"]
11 changes: 11 additions & 0 deletions railway.ingest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "packages/ingest/Dockerfile"
},
"deploy": {
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 5
}
}
Loading