| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- FROM resin/rpi-raspbian:jessie-20170531
- # Set the variables
- ENV DEBIAN_FRONTEND noninteractive
- WORKDIR /root
- # Install packages necessary for compiling python
- RUN apt-get update && apt-get install -y \
- build-essential \
- libncursesw5-dev \
- libgdbm-dev \
- libc6-dev \
- zlib1g-dev \
- libsqlite3-dev \
- tk-dev \
- libssl-dev \
- openssl \
- curl \
- vim \
- git \
- mc \
- htop \
- python \
- python-dev \
- python-pip \
- libncurses5-dev \
- python-pillow
- RUN sudo echo "Europe/Berlin" > /etc/timezone
- RUN sudo dpkg-reconfigure -f noninteractive tzdata
- # Update pip and install jupyter
- RUN pip install --upgrade pip
- RUN pip install path.py requests
- # this version will be used by matrix python bindings
- RUN pyversions -d
- RUN git clone https://github.com/hzeller/rpi-rgb-led-matrix.git /matrix
- WORKDIR /matrix
- # RUN sed -i "s/=regular/=adafruit-hat-pwm/g" lib/Makefile
- # for C++-demos
- RUN make -C examples-api-use
- # for python interface
- RUN cd bindings/python && make build-python install-python
- COPY _ctx/pixel /app
- # CMD python -u /app/pixelreceiver.py > /pixel/receive.log
- CMD /bin/bash -c "sleep 100000"
|