44406b72db
Moteva-style AI design workbench replica. Home prompt creates a project; the project page provides an infinite canvas with node drag, zoom/pan, a design chat panel, history replay, image asset upload, and project save/regenerate. - Backend: go-zero, DDD layering, sqlc/pgx, optional PostgreSQL; memory or Redis cache; asynq job queue; MinIO/S3/R2/OSS object storage; sky-valley/pi agent runtime adapter. - Frontend: Next.js App Router + Vite artifact build, TypeScript, i18n, shadcn/ui components, auth (OTP/Turnstile/Google/WeChat). - Deploy: Docker Compose and k3s manifests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
365 B
Docker
18 lines
365 B
Docker
FROM golang:1.26-alpine AS build
|
|
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/img-infinite-canvas ./...
|
|
|
|
FROM alpine:3.22
|
|
|
|
WORKDIR /app
|
|
COPY --from=build /out/img-infinite-canvas /app/img-infinite-canvas
|
|
COPY etc /app/etc
|
|
|
|
EXPOSE 8888
|
|
CMD ["/app/img-infinite-canvas", "-f", "/app/etc/config.yaml"]
|