2026-07-10 19:24:26 -03:00
|
|
|
FROM golang:1.25.11-bookworm@sha256:b96f24a8d7d010ea0acb9c3ba99064740f02b6b984612b28bd3c9c5ab9453e38
|
2021-08-10 19:06:12 +02:00
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
|
git \
|
2024-10-21 14:39:10 +02:00
|
|
|
protobuf-compiler='3.21.12*' \
|
|
|
|
|
clang-format='1:14.0*'
|
2021-08-10 19:06:12 +02:00
|
|
|
|
|
|
|
|
# We don't want any default values for these variables to make sure they're
|
|
|
|
|
# explicitly provided by parsing the go.mod file. Otherwise we might forget to
|
|
|
|
|
# update them here if we bump the versions.
|
|
|
|
|
ARG PROTOBUF_VERSION
|
|
|
|
|
ARG GRPC_GATEWAY_VERSION
|
|
|
|
|
|
|
|
|
|
ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0"
|
2022-09-30 18:41:48 +02:00
|
|
|
ENV FALAFEL_VERSION="v0.9.1"
|
2021-08-10 19:06:12 +02:00
|
|
|
|
|
|
|
|
RUN cd /tmp \
|
2023-03-19 17:16:59 +02:00
|
|
|
&& go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION} \
|
|
|
|
|
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \
|
|
|
|
|
&& go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \
|
|
|
|
|
&& go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \
|
|
|
|
|
&& go install github.com/lightninglabs/falafel@${FALAFEL_VERSION}
|
2021-08-10 19:06:12 +02:00
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
|
|
CMD ["/bin/bash", "/build/litrpc/gen_protos.sh"]
|