20 lines
524 B
Docker
20 lines
524 B
Docker
# GoChat Development Dockerfile
|
|
# Uses air for hot reload, mirrors Chatwoot dev pattern with volume mount
|
|
|
|
FROM golang:1.24-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 go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
# Full source mount via volume in compose — no COPY needed here
|
|
# air.toml config must exist in project root
|
|
EXPOSE 3000
|
|
|
|
CMD ["air", "-c", ".air.toml"]
|