FROM golang:1.25-alpine

WORKDIR /app

RUN apk add --no-cache git curl && \
    go install github.com/air-verse/air@latest

COPY go.mod go.sum ./
RUN go mod download

EXPOSE 8090
CMD ["air", "-c", ".air.toml"]
