# 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"]