Changeset 0.11.0 (#62)

This commit is contained in:
2026-02-25 13:29:15 +00:00
parent d2ec55b16d
commit c9d8e9457e
56 changed files with 5664 additions and 91 deletions

View File

@@ -2,7 +2,7 @@
# Chat Switchboard - Backend Dockerfile
# ==========================================
# Standalone Go API server for cluster deployment.
# Build context is ./server (not repo root).
# Build context is the repo root (not ./server).
# ==========================================
# Build stage
@@ -13,11 +13,11 @@ ARG APP_VERSION=dev
WORKDIR /app
# Copy module files and download deps
COPY go.mod go.sum* ./
COPY server/go.mod server/go.sum* ./
RUN go mod download
# Copy source and tidy (resolves any go.sum gaps)
COPY . .
COPY server/ .
RUN go mod tidy
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${APP_VERSION}" -o /bin/switchboard .
@@ -31,6 +31,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=builder /bin/switchboard /usr/local/bin/switchboard
COPY --from=builder /app/database/migrations /app/database/migrations
# Builtin extensions (seeded into DB on startup)
COPY extensions/builtin/ /app/extensions/builtin/
WORKDIR /app
EXPOSE 8080