# syntax=docker/dockerfile:1 # Forked from https://github.com/moby/buildkit/blob/e1b3b6c4abf7684f13e6391e5f7bc9210752687a/hack/dockerfiles/generated-files.Dockerfile # Copyright The BuildKit Authors. # Copyright The Buildx Authors. # Licensed under the Apache License, Version 2.0 ARG GO_VERSION=1.23 ARG PROTOC_VERSION=3.11.4 ARG PROTOC_GOOGLEAPIS_VERSION=2af421884dd468d565137215c946ebe4e245ae26 # protoc is dynamically linked to glibc so can't use alpine base FROM golang:${GO_VERSION}-bookworm AS base RUN apt-get update && apt-get --no-install-recommends install -y git unzip FROM base AS protoc ARG PROTOC_VERSION ARG TARGETOS ARG TARGETARCH RUN <&2 'ERROR: The result of "go generate" differs. Please update with "make generated-files"' echo "$diff" exit 1 fi EOT