2014-06-18 22:31:40 +00:00
|
|
|
# initialize from the image
|
|
|
|
|
2017-07-31 08:06:27 +00:00
|
|
|
FROM debian:9
|
2014-06-18 22:31:40 +00:00
|
|
|
|
|
|
|
# install build tools and dependencies
|
|
|
|
|
2017-09-29 18:46:38 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-10-29 20:50:38 +00:00
|
|
|
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}"
|