second commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user