Files
gochat/deploy/docker/Dockerfile.dev
T
Rogeeandrogee 798ea43c2f HH-442: isolate runtime processes and harden shutdown (#90)
* 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>
2026-08-22 02:38:15 +08:00

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