Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. FROM resin/rpi-raspbian:jessie-20170531
  2. # Set the variables
  3. ENV DEBIAN_FRONTEND noninteractive
  4. WORKDIR /root
  5. # Install packages necessary for compiling python
  6. RUN apt-get update && apt-get install -y \
  7. build-essential \
  8. libncursesw5-dev \
  9. libgdbm-dev \
  10. libc6-dev \
  11. zlib1g-dev \
  12. libsqlite3-dev \
  13. tk-dev \
  14. libssl-dev \
  15. openssl \
  16. curl \
  17. vim \
  18. git \
  19. mc \
  20. htop \
  21. python \
  22. python-dev \
  23. python-pip \
  24. libncurses5-dev \
  25. python-pillow
  26. RUN sudo echo "Europe/Berlin" > /etc/timezone
  27. RUN sudo dpkg-reconfigure -f noninteractive tzdata
  28. # Update pip and install jupyter
  29. RUN pip install --upgrade pip
  30. RUN pip install path.py requests
  31. # this version will be used by matrix python bindings
  32. RUN pyversions -d
  33. RUN git clone https://github.com/hzeller/rpi-rgb-led-matrix.git /matrix
  34. WORKDIR /matrix
  35. # RUN sed -i "s/=regular/=adafruit-hat-pwm/g" lib/Makefile
  36. # for C++-demos
  37. RUN make -C examples-api-use
  38. # for python interface
  39. RUN cd bindings/python && make build-python install-python
  40. COPY _ctx/pixel /app
  41. # CMD python -u /app/pixelreceiver.py > /pixel/receive.log
  42. CMD /bin/bash -c "sleep 100000"