2018-02-18 23:41:34 +00:00
|
|
|
# initialize from the image
|
|
|
|
|
|
|
|
FROM debian:9
|
|
|
|
|
|
|
|
# install build tools and dependencies
|
|
|
|
|
2018-03-30 16:54:09 +00:00
|
|
|
RUN apt-get update && \
|
2018-02-18 23:41:34 +00:00
|
|
|
apt-get install -y \
|
2018-02-19 01:31:41 +00:00
|
|
|
build-essential curl unzip git python3 python3-pip \
|
2018-03-30 16:54:09 +00:00
|
|
|
libsdl2-dev libsdl2-image-dev
|
2018-02-18 23:41:34 +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-10-10 12:19:59 +00:00
|
|
|
ENV PYTHON=python3
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
|
|
|
|
ENV WORKON_HOME=/tmp/.venvs
|
|
|
|
|
|
|
|
RUN $PYTHON -m pip install "protobuf==${PROTOBUF_VERSION}" ecdsa click trezor mako munch
|