You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/Dockerfile

32 lines
854 B

10 years ago
# initialize from the image
FROM debian:9
10 years ago
# install build tools and dependencies
ARG EMULATOR=0
ENV EMULATOR=$EMULATOR
RUN apt-get update && \
apt-get install -y build-essential curl git python3 python3-pip
RUN if [ "$EMULATOR" = 1 ]; then \
apt-get install -y libsdl2-dev libsdl2-image-dev; \
else \
apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi; \
fi
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"
6 years ago
ENV PYTHON=python3
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
6 years ago
# use zipfile module to extract files world-readable
RUN $PYTHON -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/local && chmod 755 /usr/local/bin/protoc
6 years ago
ENV WORKON_HOME=/tmp/.venvs
6 years ago
RUN $PYTHON -m pip install pipenv