2014-06-18 15:31:40 -07:00
|
|
|
# initialize from the image
|
|
|
|
|
2017-07-31 01:06:27 -07:00
|
|
|
FROM debian:9
|
2014-06-18 15:31:40 -07:00
|
|
|
|
|
|
|
# install build tools and dependencies
|
|
|
|
|
2018-02-18 16:03:40 -08:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
2018-01-11 15:03:55 -08:00
|
|
|
build-essential curl unzip git python3 python3-pip gcc-arm-none-eabi libnewlib-arm-none-eabi
|
2017-10-29 13:50:38 -07:00
|
|
|
|
|
|
|
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
|
2018-01-11 15:03:55 -08:00
|
|
|
RUN pip3 install "protobuf==${PROTOBUF_VERSION}" ecdsa
|
|
|
|
|
|
|
|
RUN ln -s python3 /usr/bin/python
|