{"contents":"FROM golang:1.24-alpine AS builder\n\nRUN apk add --no-cache gcc musl-dev git\n\nWORKDIR /src\n\n# Copy core module first (from parent build context)\nCOPY core/ /core/\n\n# Copy http-knot module\nCOPY http-knot/go.mod http-knot/go.sum ./\nRUN go mod download\n\nCOPY http-knot/ .\n\nRUN CGO_ENABLED=1 GOOS=linux go build -o /bin/http-knot .\n\nFROM alpine:3.21\n\nRUN apk add --no-cache ca-certificates git sqlite\n\nCOPY --from=builder /bin/http-knot /usr/local/bin/http-knot\n\n# Data directory for SQLite\nRUN mkdir -p /data\nVOLUME /data\n\nEXPOSE 5555\n\nCMD [\"http-knot\"]\n","path":"Dockerfile","ref":"main"}