Changeset 0.11.0 (#62)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user