1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00
trezor-firmware/Dockerfile

20 lines
654 B
Docker
Raw Normal View History

2014-06-18 22:31:40 +00:00
# initialize from the image
FROM debian:9
2014-06-18 22:31:40 +00:00
# install build tools and dependencies
RUN apt-get update && \
apt-get install -y \
2018-01-11 23:03:55 +00:00
build-essential curl unzip git python3 python3-pip gcc-arm-none-eabi libnewlib-arm-none-eabi
2017-10-29 20:50:38 +00: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"
2018-06-25 16:09:52 +00:00
# use zipfile module to extract files world-readable
RUN python3 -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/local && chmod 755 /usr/local/bin/protoc
2018-01-11 23:03:55 +00:00
RUN pip3 install "protobuf==${PROTOBUF_VERSION}" ecdsa
RUN ln -s python3 /usr/bin/python