Rust (Axum) + Vue 3 + SQLite. Features: - Project CRUD REST API with proper error handling - Per-project agent loop (mpsc + broadcast channels) - LLM-driven plan generation and replan on user feedback - SSH command execution with status streaming - WebSocket real-time updates to frontend - Four-zone UI: requirement, plan (left), execution (right), comment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
567 B
Docker
26 lines
567 B
Docker
# Stage 1: Build frontend
|
|
FROM node:22-alpine AS frontend
|
|
WORKDIR /app/web
|
|
COPY web/package.json web/package-lock.json ./
|
|
RUN npm ci
|
|
COPY web/ ./
|
|
RUN npm run build
|
|
|
|
# Stage 2: Build backend
|
|
FROM rust:1.84-alpine AS backend
|
|
RUN apk add --no-cache musl-dev
|
|
WORKDIR /app
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY src/ ./src/
|
|
RUN cargo build --release
|
|
|
|
# Stage 3: Runtime
|
|
FROM alpine:3.21
|
|
RUN apk add --no-cache openssh-client ca-certificates
|
|
WORKDIR /app
|
|
COPY --from=backend /app/target/release/tori .
|
|
COPY --from=frontend /app/web/dist ./web/dist/
|
|
|
|
EXPOSE 3000
|
|
CMD ["./tori"]
|