From eb40570aeee5243bb4932cff6259f98b82785bdd Mon Sep 17 00:00:00 2001 From: "Jon Radoff (Metavert)" Date: Fri, 6 Nov 2026 02:49:45 -0500 Subject: [PATCH] Pin Docker base images by digest Every FROM line now names an image digest, with the tag it was resolved from in a comment above it (resolved 2026-11-06): - Dockerfile, Dockerfile.mcp: golang:1.25.14-bookworm (what golang:1.25-bookworm points to) and debian:bookworm-20261104-slim (what debian:bookworm-slim points to). Same images as before. - Dockerfile.smithery: builder golang:1.24-alpine -> golang:1.25.14-alpine3.23, runtime alpine:latest -> alpine:3.23 (3.23.8). The Smithery image could not build before: go.mod requires go 1.25.0 and the golang:1.24 images set GOTOOLCHAIN=local. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 6 ++++-- Dockerfile.mcp | 6 ++++-- Dockerfile.smithery | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ae2148..9655af7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Build stage -FROM golang:1.25-bookworm AS builder +# golang:1.25.14-bookworm +FROM golang@sha256:3b4a11519ad929d1e1d261a12cff056f0c85b735253d7d861346b9c6f8b36437 AS builder WORKDIR /app @@ -14,7 +15,8 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o lightcms ./cmd/server # Runtime stage (Debian for Cloudflare WARP support) -FROM debian:bookworm-slim +# debian:bookworm-20261104-slim +FROM debian@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl gnupg dbus bash \ diff --git a/Dockerfile.mcp b/Dockerfile.mcp index 63753fc..7114956 100644 --- a/Dockerfile.mcp +++ b/Dockerfile.mcp @@ -12,7 +12,8 @@ # ghcr.io/metavert-io/lightcms-mcp # Build stage -FROM golang:1.25-bookworm AS builder +# golang:1.25.14-bookworm +FROM golang@sha256:3b4a11519ad929d1e1d261a12cff056f0c85b735253d7d861346b9c6f8b36437 AS builder WORKDIR /app @@ -24,7 +25,8 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o lightcms-mcp ./cmd/mcp # Runtime stage -FROM debian:bookworm-slim +# debian:bookworm-20261104-slim +FROM debian@sha256:734a72b3d6142a71993b4bc580ca01d8ca687f77a2c422d96a961d3376b179bc RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ diff --git a/Dockerfile.smithery b/Dockerfile.smithery index 8c13b02..f3236d5 100644 --- a/Dockerfile.smithery +++ b/Dockerfile.smithery @@ -1,4 +1,5 @@ -FROM golang:1.24-alpine AS builder +# golang:1.25.14-alpine3.23 +FROM golang@sha256:27b3069b25647beacd3745b0b2c83e2f9b8d3935455a32cd4531236ee1c960e0 AS builder WORKDIR /app RUN apk add --no-cache git COPY go.mod go.sum ./ @@ -6,7 +7,8 @@ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o lightcms-mcp ./cmd/mcp -FROM alpine:latest +# alpine:3.23 (3.23.8) +FROM alpine@sha256:f3d55900449227ae9e237ede521e7b665d53a253b42065ba90b9db9275e198ad WORKDIR /app RUN apk --no-cache add ca-certificates COPY --from=builder /app/lightcms-mcp .