Advertisement
Guest User

Untitled

a guest
Aug 16th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. FROM balenalib/%%BALENA_MACHINE_NAME%%-python:3-buster-run
  2.  
  3. # use `install_packages` if you need to install dependencies,
  4. # for instance if you need git, just uncomment the line below.
  5. RUN install_packages wget unzip curl
  6.  
  7. RUN apt update && apt install xorg openbox
  8.  
  9. RUN apt update && apt install python-pip && pip install pynput
  10.  
  11. # Set our working directory
  12. WORKDIR /usr/src/app
  13.  
  14. # This will copy all files in our root to the working directory in the container
  15. COPY . ./
  16.  
  17. RUN wget https://github.com/pimoroni/python-multitouch/archive/master.zip && \
  18. unzip master.zip && \
  19. cd python-multitouch-master/library/ && \
  20. sudo python3 setup.py install
  21.  
  22. RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
  23. && echo "" >> /etc/X11/xinit/xserverrc \
  24. && echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp "$@"' >> /etc/X11/xinit/xserverrc
  25.  
  26. CMD [ "python", "start.py"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement