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
|
|
|
|
|
2018-10-11 12:58:22 +00:00
|
|
|
ARG EMULATOR=0
|
|
|
|
ENV EMULATOR=$EMULATOR
|
|
|
|
|
2018-02-19 00:03:40 +00:00
|
|
|
RUN apt-get update && \
|
2018-10-11 12:58:22 +00:00
|
|
|
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
|
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
|
|
|
|
2018-09-19 18:30:00 +00:00
|
|
|
ENV PYTHON=python3
|
2018-10-11 12:58:22 +00:00
|
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
ENV LANG=C.UTF-8
|
2018-06-25 16:09:52 +00:00
|
|
|
|
2018-09-19 18:30:00 +00:00
|
|
|
# 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
|
2018-09-19 17:44:35 +00:00
|
|
|
|
2018-09-19 18:30:00 +00:00
|
|
|
ENV WORKON_HOME=/tmp/.venvs
|
2018-01-11 23:03:55 +00:00
|
|
|
|
2018-09-19 18:30:00 +00:00
|
|
|
RUN $PYTHON -m pip install pipenv
|