File tree Expand file tree Collapse file tree 5 files changed +43
-0
lines changed
plugins/protocolbuffers/js/v4.0.1
tests/testdata/buf.build/protocolbuffers/js/v4.0.1 Expand file tree Collapse file tree 5 files changed +43
-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.19
2+ FROM debian:bookworm-20251117 AS build
3+
4+ ARG TARGETARCH
5+
6+ RUN apt-get update \
7+ && apt-get install -y curl
8+ RUN arch=${TARGETARCH}; \
9+ if [ "${arch}" = "amd64" ]; then arch="x86_64" ; elif [ "${arch}" = "arm64" ]; then arch="aarch_64" ; fi; \
10+ curl -fsSL -o /tmp/protobuf-javascript.tar.gz https://github.com/protocolbuffers/protobuf-javascript/releases/download/v4.0.1/protobuf-javascript-4.0.1-linux-${arch}.tar.gz \
11+ && cd /tmp \
12+ && tar zxf protobuf-javascript.tar.gz bin/protoc-gen-js \
13+ && rm -f protobuf-javascript.tar.gz
14+
15+ FROM gcr.io/distroless/cc-debian12:latest@sha256:0000f9dc0290f8eaf0ecceafbc35e803649087ea7879570fbc78372df7ac649b AS base
16+
17+ FROM scratch
18+ COPY --from=base --link / /
19+ COPY --from=build --link --chmod=0755 /tmp/bin/protoc-gen-js .
20+ USER nobody
21+ ENTRYPOINT ["/protoc-gen-js" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/protocolbuffers/js
3+ plugin_version : v4.0.1
4+ source_url : https://github.com/protocolbuffers/protobuf-javascript
5+ description : Base types for JavaScript. Generates message and enum types.
6+ output_languages :
7+ - javascript
8+ registry :
9+ npm :
10+ deps :
11+ - package : ' google-protobuf'
12+ version : ^4.0.1
13+ import_style : commonjs
14+ opts :
15+ - import_style=commonjs
16+ - binary
17+ spdx_license_id : BSD-3-Clause
18+ license_url : https://github.com/protocolbuffers/protobuf-javascript/blob/v4.0.1/LICENSE.md
Original file line number Diff line number Diff line change 1+ h1:wQIMUPRiJej5NUylVzlJbZQuoWOEyQAVFqDMcAL1rqw=
Original file line number Diff line number Diff line change 1+ h1:RhtraNu9zMktIcNrBU+024jXoSx9/BsG/oK3VnPLgSc=
You can’t perform that action at this time.
0 commit comments