From 6edb97133baebb58751dcfd688ed4a316279eddb Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 29 Oct 2017 21:50:38 +0100 Subject: [PATCH] build: use recent protobuf in docker --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ecca657a3..c92ec89f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,5 +5,10 @@ FROM debian:9 # install build tools and dependencies RUN apt-get update && apt-get install -y \ - build-essential git python python-ecdsa gcc-arm-none-eabi \ - protobuf-compiler libprotobuf-dev python-protobuf + build-essential git python python-ecdsa gcc-arm-none-eabi curl +RUN apt-get install -y unzip python-pip + +ENV PROTOBUF_VERSION=3.4.0 +RUN curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" +RUN unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d /usr +RUN pip2 install "protobuf==${PROTOBUF_VERSION}"