Skip to content

Commit e117fe2

Browse files
committed
install protobuf compiler from releases instead of apt
1 parent dfbe95e commit e117fe2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,18 @@ 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+
RUN cd /tmp && \
40+
curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip -o protoc.zip && \
41+
unzip protoc.zip && \
42+
cp bin/protoc /usr/bin/protoc && \
43+
rm -rf *
44+
3845
# Install rust using rustup
3946
ARG CHANNEL
4047
ENV RUSTUP_VER="1.26.0" \

0 commit comments

Comments
 (0)