Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/community/sudorandom-connect-openapi/v0.21.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.19
FROM --platform=$BUILDPLATFORM golang:1.25.3-bookworm AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags "-s -w" -tags remote_plugin -trimpath github.com/sudorandom/[email protected] \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-openapi" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1
name: buf.build/community/sudorandom-connect-openapi
plugin_version: v0.21.3
source_url: https://github.com/sudorandom/protoc-gen-connect-openapi
description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface.
spdx_license_id: MIT
license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.21.3/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:hoDQv39ijB2GCqQTnGlgVj1q8JPDB9lmQkY0WUmE+Qc=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:tXvqQAI2yeM8+7VlRR4LY5WOPVz6elhwUNQjC7wJpeM=