# Build stage FROM golang:1.25-alpine AS builder WORKDIR /app # Install build dependencies RUN apk add --no-cache git # 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 -o konbini . # Runtime stage FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /root/ # Copy the binary from builder COPY --from=builder /app/konbini . # Expose the API port EXPOSE 4444 CMD ["./konbini"]