Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM balenalib/%%BALENA_MACHINE_NAME%%-python:3-buster-run
- # use `install_packages` if you need to install dependencies,
- # for instance if you need git, just uncomment the line below.
- RUN install_packages wget unzip curl
- RUN apt update && apt install xorg openbox
- RUN apt update && apt install python-pip && pip install pynput
- # Set our working directory
- WORKDIR /usr/src/app
- # This will copy all files in our root to the working directory in the container
- COPY . ./
- RUN wget https://github.com/pimoroni/python-multitouch/archive/master.zip && \
- unzip master.zip && \
- cd python-multitouch-master/library/ && \
- sudo python3 setup.py install
- RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
- && echo "" >> /etc/X11/xinit/xserverrc \
- && echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp "$@"' >> /etc/X11/xinit/xserverrc
- CMD [ "python", "start.py"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement