* HH-442: isolate runtime processes and harden shutdown * HH-442: harden worker shutdown races * HH-442: gate dependency shutdown on active handlers --------- Co-authored-by: Rogee <rogee@ipao.vip>
21 lines
632 B
Docker
21 lines
632 B
Docker
# GoChat Development Dockerfile
|
|
# Uses air for hot reload, mirrors Chatwoot dev pattern with volume mount
|
|
|
|
FROM golang:1.25.13-alpine
|
|
|
|
# Install air (hot reload tool) and development tools
|
|
RUN go install github.com/air-verse/air@v1.66.0 && apk add --no-cache git
|
|
|
|
WORKDIR /app
|
|
|
|
# Pre-download dependencies for faster rebuilds
|
|
COPY backend/go.mod backend/go.sum ./
|
|
COPY backend/internal/pgvector_stub/ ./internal/pgvector_stub/
|
|
RUN go mod download
|
|
|
|
# Full source mount via volume in compose — no COPY needed here
|
|
# air.toml config must exist in backend/ (project root for the Go module)
|
|
EXPOSE 3000
|
|
|
|
CMD ["air", "-c", ".air.toml"]
|