diff --git a/Dockerfile b/Dockerfile index af21761b..e4b5dabd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ # Build the admin console SPA (controlplane/admin/ui) so the kubernetes build # embeds a FRESH dist/ via //go:embed all:ui/dist, overwriting the committed # bundle. Runs before the Go build. -FROM node:24-bookworm-slim AS uibuilder +FROM node:24-bookworm-slim@sha256:f3690d9da7fcdea20facb2f14f08cbd0f6e442164d8b4bae44f11e850597b48f AS uibuilder WORKDIR /ui COPY controlplane/admin/ui/package.json controlplane/admin/ui/package-lock.json ./ RUN npm ci COPY controlplane/admin/ui/ ./ RUN npm run build -FROM golang:1.27-bookworm AS builder +FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc6-dev curl gzip && rm -rf /var/lib/apt/lists/* @@ -75,7 +75,7 @@ RUN CGO_ENABLED=1 \ ./duckdbservice RUN CGO_ENABLED=1 go build -tags "${BUILD_TAGS}" -ldflags "-X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" -o duckgres . -FROM chainguard/wolfi-base:latest +FROM chainguard/wolfi-base:latest@sha256:cc7d4006ee760d035bbfb8475cabbed324d2ee400bfce8972742a318608d31fd # postgresql-18-client provides pg_dump/pg_restore, used by the control-plane # reshard runner's pre-flip catalog backup (docs/design/resharding.md). Pinned diff --git a/Dockerfile.controlplane b/Dockerfile.controlplane index c2f29faa..2ff38373 100644 --- a/Dockerfile.controlplane +++ b/Dockerfile.controlplane @@ -15,14 +15,14 @@ # Build the admin console SPA so the kubernetes build embeds a FRESH dist/ via # //go:embed all:ui/dist (this is the prod CP image — without this stage it # would ship whatever ui/dist was last committed). -FROM node:24-bookworm-slim AS uibuilder +FROM node:24-bookworm-slim@sha256:f3690d9da7fcdea20facb2f14f08cbd0f6e442164d8b4bae44f11e850597b48f AS uibuilder WORKDIR /ui COPY controlplane/admin/ui/package.json controlplane/admin/ui/package-lock.json ./ RUN npm ci COPY controlplane/admin/ui/ ./ RUN npm run build -FROM golang:1.27-bookworm AS builder +FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc6-dev && rm -rf /var/lib/apt/lists/* @@ -43,7 +43,7 @@ RUN CGO_ENABLED=1 go build -tags "${BUILD_TAGS}" \ -o duckgres-controlplane \ ./cmd/duckgres-controlplane -FROM chainguard/wolfi-base:latest +FROM chainguard/wolfi-base:latest@sha256:cc7d4006ee760d035bbfb8475cabbed324d2ee400bfce8972742a318608d31fd # postgresql-18-client provides pg_dump/pg_restore for the reshard runner's # pre-flip catalog backup (docs/design/resharding.md). Pinned to PG 18 to match diff --git a/Dockerfile.worker b/Dockerfile.worker index 633fd16d..06615958 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -8,7 +8,7 @@ # surface is the all-in-one duckgres binary (or the CP-only binary in # cmd/duckgres-controlplane), which routes queries to whichever worker # image the per-tenant `image` config-store column points at. -FROM golang:1.27-bookworm AS builder +FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ libc6-dev curl gzip && rm -rf /var/lib/apt/lists/* @@ -159,7 +159,7 @@ RUN if [ -n "$DUCKDB_BINDINGS_VERSION" ]; then \ echo "Verified: duckgres-worker linked against duckdb-go-bindings@$embedded" ; \ fi -FROM chainguard/wolfi-base:latest +FROM chainguard/wolfi-base:latest@sha256:cc7d4006ee760d035bbfb8475cabbed324d2ee400bfce8972742a318608d31fd # libstdc++ is the C++ runtime the CGO-linked DuckDB engine needs — present # implicitly on debian-slim, but not in wolfi-base. diff --git a/cmd/cache-proxy/Dockerfile b/cmd/cache-proxy/Dockerfile index 6aa8dea5..8fab03ff 100644 --- a/cmd/cache-proxy/Dockerfile +++ b/cmd/cache-proxy/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.27-bookworm AS builder +FROM golang:1.27-bookworm@sha256:ce59b41415e2524ae99926fe1f37ce48ba8c194dcbd2a56a65436cdcefa2bd34 AS builder WORKDIR /build COPY go.mod go.sum ./ RUN go mod download @@ -9,7 +9,7 @@ RUN CGO_ENABLED=0 go build \ -ldflags "-X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ -o cache-proxy ./cmd/cache-proxy/ -FROM debian:bookworm-slim +FROM debian:bookworm-slim@sha256:e67eeead736ff7bbe258ef088bff683635c561b1fcfefad0806c1df4ab49ce0e RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* RUN groupadd -r cacheproxy && useradd -r -g cacheproxy -d /app cacheproxy WORKDIR /app