File tree Expand file tree Collapse file tree 5 files changed +39
-0
lines changed
plugins/connectrpc/python/v0.5.0
tests/testdata/buf.build/connectrpc/python/v0.5.0 Expand file tree Collapse file tree 5 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ *
2+ ! Dockerfile
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.18
2+ FROM python:3.11.13-bookworm AS build
3+ WORKDIR /app
4+ RUN python -mvenv /app
5+ RUN . ./bin/activate \
6+ && pip install --no-cache-dir protoc-gen-connect-python==0.5.0 \
7+ && pip uninstall --yes pip setuptools \
8+ && rm -f bin/activate.fish bin/activate.csh bin/Activate.ps1
9+
10+ FROM gcr.io/distroless/python3-debian12:latest@sha256:a0ded8676ed10e194cce1b8fdf9171672cda95ad1cabba4ece7b01f4db2e7471 AS base
11+
12+ FROM scratch
13+ COPY --link --from=base / /
14+ COPY --link --from=build --chmod=0755 /app /app
15+ USER nobody
16+ ENTRYPOINT [ "/app/bin/protoc-gen-connect-python" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/connectrpc/python
3+ plugin_version : v0.5.0
4+ source_url : https://github.com/connectrpc/connect-python
5+ description : Generates client and server stubs for Connect Python. Compatible with the Connect RPC protocol.
6+ spdx_license_id : Apache-2.0
7+ license_url : https://github.com/connectrpc/connect-python/blob/v0.5.0/LICENSE
8+ deps :
9+ - plugin : buf.build/protocolbuffers/python:v32.1
10+ output_languages :
11+ - python
12+ registry :
13+ python :
14+ package_type : " runtime"
15+ # https://github.com/connectrpc/connect-python/blob/v0.5.0/protoc-gen-connect-python/pyproject.toml#L11
16+ requires_python : " >=3.10"
17+ deps :
18+ # https://pypi.org/project/connect-python/
19+ - " connect-python >= 0.5.0"
Original file line number Diff line number Diff line change 1+ h1:xBXmWskwB1q3MooUhS11g0hafqE1s/muiht/9qkQwbc=
Original file line number Diff line number Diff line change 1+ h1:V+Ep7qfrjlGQf5vwrbmpzJC1tmB4gX+GZJmBxwV9Sco=
You can’t perform that action at this time.
0 commit comments