Dockerfile 1.2 KB

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