FROM golang:1.26-trixie RUN apt-get update && apt-get install -y --no-install-recommends git && \ rm -rf /var/lib/apt/lists/* && \ go install github.com/air-verse/air@latest WORKDIR /app ENV FIPS_ENABLED=true # Cache dependencies first. COPY go.mod go.sum ./ RUN go mod download # Source is volume-mounted at runtime for live reload. COPY . . ENTRYPOINT ["air", "-c", ".air.toml"]