File tree Expand file tree Collapse file tree 5 files changed +211
-0
lines changed
Expand file tree Collapse file tree 5 files changed +211
-0
lines changed Original file line number Diff line number Diff line change 1+ *
2+ ! Dockerfile
3+ ! package * .json
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.12
2+ FROM node:22.14.0-bookworm AS build
3+ WORKDIR /app
4+ COPY --link package*.json .
5+ RUN npm ci
6+ RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto \
7+ && rm -f /app/node_modules/dprint-node/*darwin*.node /app/node_modules/dprint-node/*win32*.node
8+
9+ FROM gcr.io/distroless/nodejs22-debian12:latest@sha256:881157f8399d3ab71c54068f148c25296f7f9bee6d36279febad5a6f46f41c2b AS node
10+
11+ FROM gcr.io/distroless/cc-debian12:latest@sha256:b7550f0b15838de14c564337eef2b804ba593ae55d81ca855421bd52f19bb480 AS base
12+
13+ FROM scratch
14+ COPY --link --from=base / /
15+ COPY --link --from=node --chmod=0755 /nodejs/bin/node /nodejs/bin/node
16+ COPY --link --from=build /app /app
17+ USER nobody
18+ ENTRYPOINT ["/nodejs/bin/node" ]
19+ CMD [ "/app/node_modules/.bin/protoc-gen-ts_proto" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/community/stephenh-ts-proto
3+ plugin_version : v1.181.2
4+ source_url : https://github.com/stephenh/ts-proto
5+ integration_guide_url : https://github.com/stephenh/ts-proto#quickstart
6+ description : An idiomatic protobuf generator for TypeScript.
7+ output_languages :
8+ - typescript
9+ spdx_license_id : Apache-2.0
10+ license_url : https://github.com/stephenh/ts-proto/blob/v1.181.2/LICENSE
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " plugins-stephenh-ts-proto" ,
3+ "version" : " 1.0.0" ,
4+ "dependencies" : {
5+ "ts-proto" : " 1.181.2"
6+ }
7+ }
You can’t perform that action at this time.
0 commit comments