Skip to content

Commit eac246f

Browse files
Update protocolbuffers/js (#2109)
1 parent f7637fa commit eac246f

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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"]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:wQIMUPRiJej5NUylVzlJbZQuoWOEyQAVFqDMcAL1rqw=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:RhtraNu9zMktIcNrBU+024jXoSx9/BsG/oK3VnPLgSc=

0 commit comments

Comments
 (0)