Last active
February 11, 2019 21:23
-
-
Save bunchc/a91917df1e15ce9a7a24c1dfc57f19f2 to your computer and use it in GitHub Desktop.
There Are Door Lights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM arm32v6/alpine:latest | |
RUN apk --no-cache add \ | |
bash \ | |
python3 \ | |
python3-dev \ | |
build-base \ | |
vim \ | |
git \ | |
curl \ | |
gcc \ | |
g++ \ | |
flex \ | |
bison \ | |
linux-headers \ | |
libffi-dev \ | |
libusb \ | |
usbutils \ | |
sudo | |
RUN adduser -u 1000 -G wheel -D alpine && \ | |
rm -rf /var/cache/apk/* && \ | |
python3 -m ensurepip && \ | |
pip3 install --upgrade pip setuptools && \ | |
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \ | |
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ | |
rm -rf /root/.cache && \ | |
pip3 install --no-cache-dir RPi.GPIO gpiozero pyusb infi | |
COPY hub_ctrl.py . | |
COPY door_sensor.py . | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment