* H-300: wire Captain Skills into Web runtime * H-300: enforce effective model and conservative skill budget * H-300: fix CI gosec step * ci: extend golangci-lint timeout * fix lint findings across backend * fix(push): resolve delivery protocol blockers * test(repository): close SQLite test databases * test(repository): reuse SQLite schema per package * H-307: restore backend Go cache in CI * H-307: prefetch modules before cold lint * H-307: resolve govulncheck security gate * H-307: build lint with patched Go toolchain * H-307: clear remaining security scan findings --------- Co-authored-by: Rogee <rogee@ipao.vip>
20 lines
572 B
Docker
20 lines
572 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@latest && apk add --no-cache git
|
|
|
|
WORKDIR /app
|
|
|
|
# Pre-download dependencies for faster rebuilds
|
|
COPY backend/go.mod backend/go.sum ./
|
|
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"]
|