# Build stage FROM golang:1.25.5-alpine AS builder WORKDIR /build # Install build dependencies RUN apk add --no-cache git ca-certificates # Copy go mod files COPY go.mod go.sum ./ RUN go mod download # Copy source code COPY . . # Build the application RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bloblens ./cmd/bloblens # Runtime stage FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /app # Copy the binary from builder COPY --from=builder /build/bloblens . ENTRYPOINT ["/app/bloblens"]