Skip to content

Commit 93d1104

Browse files
authored
Merge pull request #127 from cbeck88/upgrade-protobuf-compiler
install protobuf compiler from releases instead of apt
2 parents dfbe95e + 8d9e7d7 commit 93d1104

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,19 @@ RUN apt-get update && apt-get install -y \
3030
automake \
3131
autoconf \
3232
libtool \
33-
protobuf-compiler \
3433
libprotobuf-dev \
34+
unzip \
3535
--no-install-recommends && \
3636
rm -rf /var/lib/apt/lists/*
3737

38+
# Install a more recent release of protoc (protobuf-compiler in jammy is 4 years old and misses some features)
39+
ENV PROTOC_VER="25.2"
40+
RUN cd /tmp && \
41+
curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip -o protoc.zip && \
42+
unzip protoc.zip && \
43+
cp bin/protoc /usr/bin/protoc && \
44+
rm -rf *
45+
3846
# Install rust using rustup
3947
ARG CHANNEL
4048
ENV RUSTUP_VER="1.26.0" \

0 commit comments

Comments
 (0)