Initial commit

This commit is contained in:
Samraaj Bath
2026-06-29 15:11:48 -07:00
commit 66dfdcc58d
404 changed files with 45970 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# API service (REST + MCP). Light — no browser needed (capture runs in the worker).
FROM node:22-slim
WORKDIR /app
# Install workspace deps from the lockfile.
COPY . .
RUN npm ci
ENV PORT=8787
EXPOSE 8787
# Runs TypeScript directly via tsx (matches the compiler's runtime model).
CMD ["npm", "run", "start", "--workspace", "@cloner/api"]
+15
View File
@@ -0,0 +1,15 @@
# Worker service — runs the deterministic compiler (headless Chromium) + optional
# verify builds. Starts from the Playwright base image so Chromium + OS deps are
# preinstalled, pinned to the compiler's Playwright version.
FROM mcr.microsoft.com/playwright:v1.56.1-jammy
WORKDIR /app
COPY . .
RUN npm ci
# Each worker container has its own filesystem → its own build harness (verify
# isolation). Override HARNESS_DIR if running multiple workers on one host.
ENV ARTIFACTS_DIR=/data/artifacts
ENV HARNESS_DIR=/data/harness
CMD ["npm", "run", "start", "--workspace", "@cloner/worker"]