- rename ctcloud -> bucketeer everywhere (cmd/bucketeer, binary, compose service) - group brand assets under assets/ (light/dark logo + UI screenshot) - move long-form docs under docs/ (ARCHITECTURE, DESIGN, GOAL) and add docs/SKILL.md: how an agent queries/audits a running instance and answers user questions from the API and PostgreSQL - README: large logo (light/dark picture) and UI screenshot, repository layout - .gitignore: /bucketeer, .env, pgdata, build/test artifacts, OS junk - .dockerignore: keep brand/docs/markdown out of the build context
23 lines
634 B
Docker
23 lines
634 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM golang:1.25-alpine AS build
|
|
WORKDIR /src
|
|
|
|
# Cache module downloads (including the local certspotter fork's deps).
|
|
COPY go.mod go.sum ./
|
|
COPY third_party/certspotter/go.mod third_party/certspotter/go.sum ./third_party/certspotter/
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
# Static binary: no cgo, no shell, no writable filesystem required.
|
|
RUN CGO_ENABLED=0 GOOS=linux go build \
|
|
-trimpath -ldflags="-s -w" \
|
|
-o /out/bucketeer ./cmd/bucketeer
|
|
|
|
FROM gcr.io/distroless/static-debian12:nonroot
|
|
COPY --from=build /out/bucketeer /bucketeer
|
|
USER nonroot:nonroot
|
|
EXPOSE 9090
|
|
ENTRYPOINT ["/bucketeer"]
|