Skip to content

Commit

Permalink
install protobuf compiler from releases instead of apt
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Feb 13, 2024
1 parent dfbe95e commit e117fe2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@ RUN apt-get update && apt-get install -y \
automake \
autoconf \
libtool \
protobuf-compiler \
libprotobuf-dev \
unzip \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*

# Install a more recent release of protoc (protobuf-compiler in jammy is 4 years old and misses some features)
RUN cd /tmp && \
curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip -o protoc.zip && \
unzip protoc.zip && \
cp bin/protoc /usr/bin/protoc && \
rm -rf *

# Install rust using rustup
ARG CHANNEL
ENV RUSTUP_VER="1.26.0" \
Expand Down

0 comments on commit e117fe2

Please sign in to comment.